KOMPX.COM or COMPMISCELLANEA.COM   

Create an empty file from command line (Windows)

Creating an empty text file in Windows Command Prompt / cmd:

  1. By COPY command
  2. By TYPE command

COPY


COPY NUL empty.txt

TYPE


TYPE NUL > empty.txt

Links

  1. How can I create an empty file at the command line in Windows?: stackoverflow.com/questions/1702762/how-can-i-create-an-empty-file-at-the-command-line-in-windows
  2. How to create empty text file from a batch file?: stackoverflow.com/questions/210201/how-to-create-empty-text-file-from-a-batch-file
Operating systems
More