Is there an equivalent to /dev/null in Windows?

Posted on


If I want to ignore stdout of a command, I do this on *nix:

myprog > /dev/null

How do I achieve the same on Windows (in cmd or a batch file)?


Use NUL:

myprog > NUL

Leave a Reply

Your email address will not be published. Required fields are marked *