Wednesday, 15 August 2012

u can create a file of any size using whats supplied by windows  itself , well if u want to create a file of say  million bytes well here are the steps
1.convert 1000000 to its hex value using  calculator,open windows calculator  enter 1000000 in it and click on the hex option to get the value i.e F4240
2.pad the result with 0's at left until file size reaches 8 digits (000F4240)
3.open command prompt by clicking
start->run   ,enter cmd for windows xp,7 or command for 95,98,Me
4.enter the command DEBUG FILENAME.EXTENSION  eg:my text file to be created  is of the name "big" then the above statement would be DEBUG BIG.TXT
press enter and ignore the"file not found message"
5.type RCX and press enter ,debug will display a colon prompt
6. enter  the last 4 digits of hex size i.e 4240 in this case
7.type RBX and press enter  then

8.enter  the first 4 digits of hex size i.e 000F in this case
9.enter W  for write and Q  for quit


well thats about it u have created a file of a miilion bytes.



note ::we can create a file of any desirable size by this method
please do comment and suggest ways to improve