Create a file with a specific size

when i was testing the maximum message size should be allowed on Exchange Server , i needed to attach files with specific size, so instead of searching your files for the required size i found this kind command to generate the files with the required size:

you have to use FSUTIL command in the following format:

FSUTIL file createnew < path and name of the file > < size in bytes >

for Example;

To create a file with 20 MB size:

fsutil file createnew d:\TestFile.txt 20000000

 

Resources:

http://windowsitpro.com/systems-management/how-can-i-create-file-certain-size-windows-xp-and-later