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
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.