scripting - How to capture stderr on Windows/DOS? -


I want to capture the errors in a file from a script instead of the screen.

In these * nick, this is done with stderr redirection, usually

  echo "error" 2> Errofile.log  

How can I do this in CMD script under Windows?

For example:

  PSKelly Notepad & gt; Output. Txt 2 & gt; And 1  

This will direct stdout and stderr in a file named output.txt.

See for more information.


Comments