How to redirect stderr to null in cmd.exe

Ignacio Soler Garcia picture Ignacio Soler Garcia · Dec 22, 2010 · Viewed 118.9k times · Source

I have an application that logs a lot of noise to stderr and REALLY slows down the execution of the application. I would like to redirect that output to null. Is this possible with cmd.exe?

Answer

atzz picture atzz · Dec 22, 2010
Your DOS command 2> nul

Read page Using command redirection operators. Besides the "2>" construct mentioned by Tanuki Software, it lists some other useful combinations.