How can I create an empty file at the command line in Windows?
Without redirection, Luc Vu or Erik Konstantopoulos point out to: copy NUL EMptyFile.txt copy /b NUL EmptyFile.txt “How to create empty text file from a batch file?” (2008) also points to: type NUL > EmptyFile.txt # also echo. 2>EmptyFile.txt copy nul file.txt > nul # also in qid’s answer below REM. > empty.file fsutil file … Read more