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
0 comments
Hide comments