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

42

5

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

Sridhar Ratnakumar

Posted 2010-04-24T03:57:43.943

Reputation: 4 041

How to suppress windows command output? – phuclv – 2017-02-11T05:46:18.270

1

See also on stackoverflow: How to redirect stderr to null in cmd.exe

– hippietrail – 2013-12-20T15:29:16.837

Answers

62

Use NUL:

myprog > NUL

John T

Posted 2010-04-24T03:57:43.943

Reputation: 149 037