how to make empty file in windows code example Example 1: creating an empty file in windows type NUL > 1.txt Example 2: cmd create empty text type NUL > file.txt