[C#] NETSTAT 구하기
Process p = new Process();
StreamReader sr;
ProcessStartInfo startInfo = new ProcessStartInfo("netstat");
startInfo.Arguments = "-s";
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true;
startInfo.CreateNoWindow = true;
p.StartInfo = startInfo;
p.Start();
sr = p.StandardOutput;
System.Windows.Forms.MessageBox.Show(sr.ReadToEnd());
'Dev by INNO > C#' 카테고리의 다른 글
CLR String TitleCase Function in SQL Server 2005 (CLR Integration) (0) | 2010.05.12 |
---|---|
[C#] netstat in c# (0) | 2010.05.11 |
[C#] textbox 에서 ctrl + a 했을때 전체선택 (0) | 2010.02.11 |