Skip to content


How to generate a file of a specified size on Windows

The command is:
fsutil file createnew [filename] [size in byte]

Note that it doesn’t generate random contents: the contents is all zero bytes. If you want a random file, you can use something like Random Data File Creator, or encrypt a zero file that you generated with fsutil (I find AES Crypt pretty convenient for that purpose)

Posted in Windows.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA