I've got a batch file which calls another file to start a server. I have some specific errors (std.error & std.out) that I'd like to redirect to a log file (ex: pres_err.txt). I'm not familiar with batch programming so I'm not quite sure how to do this.
On the other hand, I kind of know how to do this in Unix but am unsure in a Windows env. For unix, I'd do something like this from the command line:
startServer > somefile 2>&1
meaning: startServer - what ever the command line startup script name you use
> - redirects
somefile - what ever file you want it to go to
2>&1 - redirects both std.error and std.out to the same file
Many thanks in advance.
ps-is there a web resouce for types of DOS .bat commands out here?
On the other hand, I kind of know how to do this in Unix but am unsure in a Windows env. For unix, I'd do something like this from the command line:
startServer > somefile 2>&1
meaning: startServer - what ever the command line startup script name you use
> - redirects
somefile - what ever file you want it to go to
2>&1 - redirects both std.error and std.out to the same file
Many thanks in advance.
ps-is there a web resouce for types of DOS .bat commands out here?