Create file of a specific size in Windows

by

in

When the need arises to generate a file of a specific size in Windows, the ‘fsutil’ command comes in handy. Utilize the following command to create a file named ‘heyitissimple’ with a size of 999 KB:

fsutil file createnew heyitissimple 1022976

It’s important to note that the size value should be specified in bytes. In this example, the file size is set to 999 KB, calculated as 999 x 1024 = 1022976 bytes.”