I need to capture all the messages from cmd.exe.
I tried abc.exe &> res.dat
, but it doesn't seem to work with stderr or others. What should I do?
Reconstruct your command like so:
abc.exe >res.dat 2>&1
This will send STDERR to the same location.
cmd.exe
not abc.exe
-- I think the difference matters.
Feb 24, 2011 at 20:54
abc.exe
? ...
'abc.exe' is not recognized as an internal or external command, operable program or batch file.
Jul 20, 2011 at 14:48