title: receive text from cmd window after start process using command line
body: <p>i am build application who run Wireshark and start sniffing, Wireshark has dumpcap.exe file who receive arguments (interface number, output file etc) and start sniffing and meanwhile i can see in the cmd window the number of packet and this number growing all the time.
  my question is how can i catch this number every few seconds in order to show this number on my application windows.</p>
  
  <p>this is my class who start this sniffing:</p>
  
  <pre><code>public class DumpPcap
  {
      public int _interfaceNumber;
      public string _pcapPath;
      public string _dumPcapPath = @"C:\Program Files\Wireshark\dumpcap.exe";
  
      public DumpPcap(int interfaceNumber, string pcapPath)
      {
          _interfaceNumber = interfaceNumber;
          _pcapPath = pcapPath;
      }
  
      public void startTheCapture()
      {
          List&lt;string&gt; stList = new List&lt;string&gt;();
          ProcessStartInfo process = new ProcessStartInfo(_dumPcapPath);
          process.Arguments = string.Format("-i " + _interfaceNumber + " -s 65535 -w " + _pcapPath);
          process.WindowStyle = ProcessWindowStyle.Hidden;
          process.RedirectStandardOutput = true;
          process.RedirectStandardError = true;
          process.CreateNoWindow = true;
          process.UseShellExecute = false;
          process.ErrorDialog = false;
          Process dumpcap = Process.Start(process);
          StreamReader reader = dumpcap.StandardOutput;
          //dumpcap.WaitForExit(100000);
  
          while (!reader.EndOfStream)
          {
              stList.Add(reader.ReadLine());
          }
      }
  }
  </code></pre>
  
  <p>and this is screenshot and i marked in red the field that i want to show in my application:</p>
  
  <p><a href="http://image.torrent-invites.com/images/641Untitled.jpg" rel="nofollow">http://image.torrent-invites.com/images/641Untitled.jpg</a></p>