Can somebody remember what was the command to create an empty file in MSDOS using BAT file?
How to create empty text file from a batch file
batch-filecmddos
Related Topic
- Windows batch files: .bat vs .cmd
- Windows – How to get current date/time on the Windows command line in a suitable format for usage in a file/folder name
- Windows – How to prevent auto-closing of console after the execution of batch file
- Windows – How to create an empty file at the command line in Windows
- The current directory in a batch file
- Android – Install an apk file from command prompt
- How to “comment-out” (add comment) in a batch/cmd
Best Answer
DOS has a few special files (devices, actually) that exist in every directory,
NUL
being the equivalent of UNIX's/dev/null
: it's a magic file that's always empty and throws away anything you write to it. Here's a list of some others;CON
is occasionally useful as well.To avoid having any output at all, you can use
/y
preventscopy
from asking a question you can't see when output goes toNUL
.