create empty text file cmd code example
Example 1: how to create empty file cmd windows
copy NUL test.txt
Example 2: create empty file command prompt cmd
echo . > file_name.ext // you will get nothing written there, totally blank
copy NUL test.txt
echo . > file_name.ext // you will get nothing written there, totally blank