Dos Create Empty File Command

Techniques I gathered from other answers: Makes a 0 byte file a very clear, backward-compatible way: type nul >Magic Calendar Maker V3.4 Full.key more. EmptyFile.txt idea via:,, possibly others, myself inspired by A 0 byte file another way, it's backward-compatible-looking: REM. >EmptyFile.txt idea via: A 0 byte file 3rd way backward-compatible-looking, too: echo.
2>EmptyFile.txt idea via: A 0 byte file the systematic way available since Windows 2000: fsutil file createnew EmptyFile.txt 0 idea via: A 0 bytes file overwriting readonly files ATTRIB -R filename.ext>NUL (CD.>filename.ext)2>NUL idea via: A single newline (2 bytes: 0x0D 0x0A in, alternatively written as r n): echo.>AlmostEmptyFile.txt Note: no space between echo,. Idea via: edit It seems that any invalid command redirected to a file would create an empty file. Heh, a feature! Compatibility: uknown TheInvisibleFeature EmptyFile.txt A 0 bytes file: invalid command/ with a random name (compatibility: uknown):%RANDOM%-%TIME:~6,5% EmptyFile.txt via: great for random by Hung Huynh edit 2 Andriy M the probably most amusing/provoking way to achieve this via invalid command A 0 bytes file: invalid command/ the funky way (compatibility: unknown) *>EmptyFile.txt idea via: A 0 bytes file 4th-coming way: break >file.txt idea via: thanks to of!
How can the answer be improved?
Techniques I gathered from other answers: Makes a 0 byte file a very clear, backward-compatible way: type nul >EmptyFile.txt idea via:,, possibly others, myself inspired by A 0 byte file another way, it's backward-compatible-looking: REM. >EmptyFile.txt idea via: A 0 byte file 3rd way backward-compatible-looking, too: echo. 2>EmptyFile.txt idea via: A 0 byte file the systematic way available since Windows 2000: fsutil file createnew EmptyFile. Gold Star Banjos Serial Numbers. txt 0 idea via: A 0 bytes file overwriting readonly files ATTRIB -R filename.ext>NUL (CD.>filename.ext)2>NUL idea via: A single newline (2 bytes: 0x0D 0x0A in, alternatively written as r n): echo.>AlmostEmptyFile.txt Note: no space between echo,. Idea via: edit It seems that any invalid command redirected to a file would create an empty file. Heh, a feature!