user2918831
user2918831

Reputation: 485

How to write standard error in text file using batch command

For one file it's showing standard error on console i.e. command prompt. I want to print it on text file.

Upvotes: 2

Views: 5600

Answers (2)

Palec
Palec

Reputation: 13581

You should use

command 2>file

See http://support.microsoft.com/kb/110930

Upvotes: 3

npocmaka
npocmaka

Reputation: 57282

some_file.exe >> text.file 2>&1

this will print all output to text file.For more info.

Upvotes: 3

Related Questions