What is the DOS equivalent of 1>/dev/null?

Zaid picture Zaid · Mar 21, 2011 · Viewed 22.6k times · Source

I want to suppress the output of my script running under DOS, similar to the following under a *nix environment:

 $ command 1>/dev/null

How can I do this?

Answer

geekosaur picture geekosaur · Mar 21, 2011

It should be >NUL on both DOS and Windows console.