How can I create an empty file at the DOS/Windows command-line?
I tried:
copy nul > file.txt
But it always displays that a file was copied.
Is there another method in the standard cmd?
It should be a method that does not require the touch command from Cygwin or any other nonstandard commands.
The command needs to run from a script, so keystrokes cannot be used.