Files that have names and positions in a file system but lack any actual content are called empty or zero-byte files. There are several reasons that you might want to create these. Certain pieces of software require the presence of an empty file in order to turn on an alternative option, such as the ability to run in a portable environment. It might also be advantageous to create placeholders that will be filled later on.
POSIX-compatible systems have the touch command, but Windows administrators don’t have access to this. Creating files with Notepad or some other basic part of Windows or Windows Server isn’t ideal, but there is a way to accomplish this from the command prompt. You can copy data from the NUL device, which is a location called the bit bucket that simply doesn’t exist, in order to create empty content.
Creating Empty Files
Hold the Windows Key and Press R. Type cmd in the box that comes up and press Enter. Navigate to the directory that you wanted to place the files in by typing:
cd “C:\Example Directory”
Replace Example Directory with the folder you actually need to work from, and make sure the path is in quotation marks. Then type:
copy nul “emptyfile.txt”
Replace emptyfile.txt with the name of the file you need. This can be repeated as many times as needed.