[Solved] What is ‘nul’ in batch file?


Nul exists as a file in EVERY directory. It swallows anything sent to it.

Reserved names. These refer to devices eg,

copy filename con 

which copies a file to the console window.

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, 

COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, 

LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

CONIN$, CONOUT$, CONERR$

From Trouble with renaming folders and sub folders using Batch

3

solved What is ‘nul’ in batch file?