title: How to redirect output from exe after it has terminated?
body: <p>I'm trying to save the output of an exe file executed within a batch file to a text file. 
  I've tried the the following methods but they don't work </p>
  
  <p>This doesn't work since I'm back at the command prompt while the application runs and the text file created is blank.</p>
  
  <p><code>C:\&gt;myexec.exe &gt; mytext.txt</code></p>
  
  <p><code>C:\&gt;_</code></p>
  
  <p><code>C:\&gt;Status: Passed</code></p>
  
  <p>These also doesn't work. I get an empty text file and no output.</p>
  
  <p><code>C:\&gt;start /wait myexec.exe &gt; mytext.txt</code></p>
  
  <p><code>C:\&gt;call start /wait myexec.exe &gt; mytext.txt</code></p>
  
  <p>This gives me an output at least:</p>
  
  <pre><code>C:\&gt;start /wait myexec.exe
  Status Passed
  </code></pre>