title: Blank CMD windows when running Bat files
body: <p>Hey so I've been dealing with this issue for a while.  So, part of my program requires me to access Adb (android development bridge) and I do that through cmd prompt and bat files.  The problem is my when running my program a blank CMD window comes up when it comes time to execute the bat, and the bat won't execute until I close the CMD window.  ANy ideas why?</p>
  
  <p>Here's what I tried:</p>
  
  <pre><code> Process compiler = new Process();
          compiler.StartInfo.FileName = "push.bat";
  
          compiler.StartInfo.UseShellExecute = false;
          compiler.StartInfo.RedirectStandardOutput = true;
          compiler.StartInfo.RedirectStandardError = true;
  
          compiler.Start();
          string d = compiler.StandardOutput.ReadToEnd();
          MessageBox.Show(d);
  </code></pre>
  
  <p>Blank CMD window.  I also tried this</p>
  
  <pre><code>    Process compiler = new Process();
          compiler.StartInfo.FileName = "cmd.exe";
          compiler.StartInfo.Arguments = " /c push.bat";
          compiler.StartInfo.UseShellExecute = false;
          compiler.StartInfo.RedirectStandardOutput = true;
          compiler.StartInfo.RedirectStandardError = true;
  
          compiler.Start();
          string d = compiler.StandardOutput.ReadToEnd();
          MessageBox.Show(d);
  </code></pre>
  
  <p>Still empty CMD window with blinking cursor comes up that won't do anything until I close it. </p>