Reputation: 3109
Under unix, I could simple ABC >/dev/null to avoid any output to screen. But under windows' cmd, using ABC > NULL will create a file named "NULL". But how to archive the /dev/null like unix?
Thanks a lot.
Upvotes: 2
Views: 945
Reputation:
Every folder has a nul device. It is one of the reserved names. These can be used in commands to refer to devices. Eg:
copy filename con
copies a file to the console window.
Here are the reserved names defined by CMD:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4,
COM5, COM6, COM7, COM8, COM9, LPT1, LPT2,
LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
CONIN$, CONOUT$, CONERR$
Upvotes: 3