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

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)?

2

1 Answer

Use NUL:

myprog > NUL

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like