create a text file in windows cmd code example Example 1: make new file windows cmd type nul > README.txt Example 2: creating text file in cmd echo. > location with name