Is there a way in Windows 7 cmd shell to redirect the stderr to stdout while keeping the stderr stream intact?
For example, I have a program that outputs to stderr and stdout the following message
TO STDOUT
TO STDERR
I want to have two files stderr.txt and stdout.txt with the following content
stderr.txt
TO STDERRstdout.txt
TO STDOUT
TO STDERR
Is this possible?
Best Answer
I think this is what you want:
or
2>
redirects stderr&1
sends stderr back to stderr.I'd have to test these to give you a better answer