create file in cmd code example
Example 1: how to create empty file cmd windows
copy NUL test.txt
Example 2: make new file windows cmd
type nul > README.txt
Example 3: create a file cmd
type NUL > EmptyFile.txt
echo. 2>EmptyFile.txt
copy nul file.txt > nul
REM. > empty.file
fsutil file createnew file.cmd 0
Example 4: create file and write to it cmd
echo some-text > filename.txt
Example 5: cmd make new file
$null > filename (including the $)
Example 6: creating file in cmd
notepad newfilename.extension