Is there an equivalent to /dev/null in Windows?
57,525
Use NUL
:
myprog > NUL
Related videos on Youtube
Author by
Sridhar Ratnakumar
Updated on September 17, 2022Comments
-
Sridhar Ratnakumar over 1 year
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)?-
hippietrail over 10 yearsSee also on stackoverflow: How to redirect stderr to null in cmd.exe
-
phuclv over 7 years
-