
First we have to convert the desired file size into bytes and then to hexadecimal notation.
To convert to bytes multiply your chosen values by:
1024 for KB 100 * 1024 for 100KB
1073741824 for GB 2 * 1073741824
Then we need to convert the byte equivalent to HEX, you can use the Windows Calculator in Scientific mode do to this. To use Windows calculator in scientific mode Open calculator,click on view and select Scientific instead of Simple.
Enter your byte size in the calculator and click on the Hex option to convert it to HEX. (1 million in hex is F4240.)
Pad the result with zeroes at the left until the file size reaches eight digits—000F4240.
Open Command prompt by typing “cmd” in Run.
If a pop-up window appears, SELECT
enable.
Type Command Debug BIGFILE.DAT. And Ignore the File not found message.
Type RCX and press Enter. Now Debug utility will display a colon prompt.
Enter the last four digits of the hexadecimal number you calculated. If your calculated Hex Code is 000F4240 Then you have to enter 4240.
Type RBX and press Enter, Then Enter the First four digits of the hexadecimal number you calculated. If your calculated Hex Code is 000F4240 Then you have to enter 000F.
Enter W for Write and Q for Quit.
You have just created a Empty file of 1 million bytes..You can create empty files of any size by following these easy steps.