Szybki przykład:
using System;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.FileName = "ipconfig.exe";
proc.StartInfo.UseShellExecute = false;
proc.Start();
int i = 0;
while (!proc.StandardOutput.EndOfStream)
{
System.Console.WriteLine(String.Format("{0} - {1}", i++, proc.StandardOutput.ReadLine()));
}
}
}
}
Tutaj po prostu wyświetlam lekko sformatowany tekst. Ty zamiast tego będziesz musiał to jakoś analizować.