첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Diagnostics;

ProcessStartInfo processStartInfo = new ProcessStartInfo();

processStartInfo.FileName               = @"c:\windows\system32\ipconfig.exe";
processStartInfo.Arguments              = "/all";				
processStartInfo.CreateNoWindow         = true;
processStartInfo.UseShellExecute        = false;
processStartInfo.RedirectStandardOutput = true;

Process process = Process.Start(processStartInfo);

string result = process.StandardOutput.ReadToEnd();

result = result.Replace("\r\r\n", "\n");

Console.WriteLine(result);
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요