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