JSI Tip 7733. How do I redirect the output of a program that I launched with the Start command?

If you launch an executable with the Start command, as in:

start cmd /c batch.bat inputfile.txt>logfile.log

the output of batch.bat does NOT redirect to logfile.log

When using the Start command, the redirection symbol (>) must be escaped with the caret (^) symbol, as in:

start cmd /c batch.bat inputfile.txt^>logfile.log

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.