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