Sometimes you just need a file of a particular size for performance testing/<insert any other reason here>. fsutil can be your friend here.
To create a 4MB file named test.dat in the current directory, run the following from a command prompt:
fsutil createnew .\test.dat 4194304
and Robert’s your father’s brother.
1 Comments.