how to makea a new file in cmd code example Example 1: make new file windows cmd type nul > README.txt Example 2: creating file in cmd notepad newfilename.extension