Search Tools Links Login

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


About this post

Posted: 2005-11-1
By: FortyPoundHead
Viewed: 1,714 times

Categories

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.