Search code examples
dosdev-null

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


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?


Solution

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