Windows: redirect stdout and stderror to nothing

stdoutwindowswindows 7windows-command-prompt

I have a command I am running produces a ton of output, I want to silence the output without writing to a file. I have used the following to send all output to a file, but again I don't want any file output:

command > out.txt 2>&1

I have used command > /dev/null on my CentOS box before, but I can't find a similar thing for windows.

Best Answer

You want command > nul 2>&1.