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 3 monthsIf I want to ignore
stdoutof a command, I do this on *nix:myprog > /dev/nullHow do I achieve the same on Windows (in
cmdor a batch file)?-
hippietrail about 9 yearsSee also on stackoverflow: How to redirect stderr to null in cmd.exe -
phuclv almost 6 years
-