how to create a file in comand promt code example Example 1: how to create empty file cmd windows copy NUL test.txt Example 2: make new file windows cmd type nul > README.txt