title: batch file write empty file
body: <p>I write unit test. The code call cmd with parameters and write result to file. But in result this is file is empty. Can you help me fix it?</p>
  
  <pre><code>String command = @"tf workspaces /owner:* /computer:* /server:http://servertfs:8080/tfs/Default/  &gt; C:\Test\test1.txt";
  ProcessStartInfo startInfo = new ProcessStartInfo();
  startInfo.CreateNoWindow = true;
  startInfo.UseShellExecute = false;
  startInfo.WindowStyle = ProcessWindowStyle.Hidden;
  startInfo.FileName = "cmd.exe";
  startInfo.Arguments = command;
  using (Process exeProcess = Process.Start(startInfo))
  {
      exeProcess.WaitForExit();
  }
  </code></pre>