I’m doing some testing right now and I needed to create a few files of specific size. I did some digging and found that the FSUTIL command would do exactly what I wanted it to do. The FSUTIL command will create an empty file of a specific size for you with just a few parameters
The command you need to run is as follows;
FSUTIL file createnew filename size
The filename can be anything you want and the size is in bytes
The screen shot above created a 1MB file. Add a few of these into a batch file and you can see what you can do with them to create a number of files of different sizes. Very useful tool if you need to create large amounts of data quickly.