Windows 7 - Create and empty file having a defined size

November 2016

To create an empty file, having a defined size under Windows 7
  • Click on Start > cmd > Press CTRL + Shift + Enter to open it as Administrator
  • Enter the following command
  • fsutil file createnew [name_of_file.extension][size_in_bytes]

  • By default the file will be generated in the system32 folder.

If you want to create the file on your desktop simply add "C:\Desktop" to your command:
  • E.g: fsutil file createnew C:\Desktop\test.png 6400000

Related :

This document entitled « Windows 7 - Create and empty file having a defined size » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.