2

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

2
  • Google knows the answer, just ask for How to write standard error in text file using batch command Commented Oct 28, 2013 at 10:17
  • possible duplicate of How to capture stderr on Windows/DOS? Commented Oct 28, 2013 at 10:29

2 Answers 2

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

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

Sign up to request clarification or add additional context in comments.

2 Comments

I found a similar page on Microsoft's site: microsoft.com/resources/documentation/windows/xp/all/proddocs/…
Yes.This is the official MS documentation , but I find robvandervoude page a little bit more neat.
3

You should use

command 2>file

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.