Tuesday, 13 August 2013

DOS stdout stderror pipes syntax

DOS stdout stderror pipes syntax

I'm using the following command to pipe the DOS stdout and stderr to my
logfile
run.exe 1> mylog.log 2>&1
My colleague insists on using:
run.exe > mylog.log 2>1
Which is correct?



This is on Windows7

No comments:

Post a Comment