I've got an app where I am calling the VB Shell function to execute a command. In order to capture the command's output, I've actually got it running with "CMD /C myprog.exe >myprog.out" ... now that works fine usually and I get the result of the execution in the file myprog.out
However when something goes wrong, the errors the program writes don't go into the file. In C parlance, it looks like it is writing to stderr in exceptional circumstances.
How can I redirect that output as well to a file? Under UNIX I could specifically tell it to output a particular file number such as stderr; any way to do that with CMD.EXE under NT?