Search notes:

fsutil file

Create a new file (of possibly zero size)

fsutil file createNew can be used in cmd.exe or PowerShell to create a file with a given size.
The following to commands create an empty file and a file whose size 42 bytes. fsutil fills the 42 bytes with a zero (0x00) value.
C:\> fsutil file createNew %temp%\empty.txt  0
C:\> fsutil file createNew %temp%\42.txt    42
See also the Linux shell command touch.

Index