how to create a file in the command line code example
Example 1: make new file windows cmd
type nul > README.txt
Example 2: create a file cmd
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 createnew file.cmd 0 # to create a file on a mapped drive
Example 3: creating file in cmd
notepad newfilename.extension
Example 4: how to create files in command line
notepad mynewfile.*insert file extension here*