How to Create an Empty File of Specific Size
To create empty file with specific size follow the steps outlined below:
1. Open a command prompt. To do that click Start>Run and type ‘cmd’ (without the quotes).
2. Go to drive on which you want to create that empty file using commands
•cd<name of directory> (with this command you will enter in directory),
•CD\ (with this command you will exit from directory),
If you are in C:\Windows directory, command cd… will return you in C:\. Use command C: as much is necessary to return in root of partition. You can change partition buy typing capital of that partition (D, E, F, G, H etc.) example: if you are in partition C:\ and you want to go in D partition type D:
3. When you are in the root of the partition on which you want to create an empty file in use this next command:
fsutil file createnew FileName Size
4. FileName is where you write a name for your new created file
5. Size is where you can input the size of your newly created file. To calculate the size you can use the formula below:
2 GB = 2 * 1024 = 2048 MB * 1024 = 2097152 KB * 1024 = 2147483648 bite
Example: If you want to create file and setup his size on 2GB you should type 2147483648
6. After these steps the empty file will be created on selected partition with name and size you created during the setup outlined above.
7. It is recommended that you restart you computer before using these files for testing.
Please remember, all technical documents are created “AS IS” and you utilize my advise and experiance at your own risk. Enjoy!