in reply to Collecting the output of command prompt
In case you are struggling with capturing STDOUT from a MS-DOS batch file, the Win/DOS equivalent of the UNIX command, 'script 2>&1 >file' is 'cmd /c script.bat 2>&1 >file'.
If you prefix the command line you are using within backticks with 'cmd /c', you should be able to capture the output.
Caveat: don't use 'call' with redirection! It doesn't work.
Update: reformatted text, added caveat.
dmm
You can give a man a fish and feed him for a day ...
|
|---|