windows 10 create file by command line code example Example 1: make new file windows cmd type nul > README.txt Example 2: make a file windows cmd nul > FILENAME.EXTENSION