See attachment for an example I made ith 30-second playing with fsutil.exe. If you want a tutorial on how to do it, wait after the repeat of Manchester United vs Charlton finished later tonight.
Attached thumbnail(s)
Q and A anyway to fool computer on a file size?
|
|
May 7 2006, 11:50 PM
Return to original view | Post
#1
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
You have to play with fsutil.exe file to create the file you want. Sparse file the way you want can be easily done if you master how to use fsutil.exe
See attachment for an example I made ith 30-second playing with fsutil.exe. If you want a tutorial on how to do it, wait after the repeat of Manchester United vs Charlton finished later tonight. Attached thumbnail(s) |
|
|
|
|
|
May 8 2006, 02:36 AM
Return to original view | Post
#2
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
The tutorial, as an example, to create a file named music.mp3 that takes only 30MB HDD space but is shown by WIndows Explorer as 100MB in size.
1. Open up Command Prompt, and navigate to where you want the file stored. In this example, it will be C:\ 2. Then at the command prompt, type:- CODE fsutil file createnew music.mp3 102400000 A file named music.mp3 with the size of 97.6MB and also takes 97.6MB of HD space will be created at C:\ Play with the 102400000 to get 100MB. 3. Then, type:- CODE fsutil sparse setflag music.mp3 This will mark music.mp3 as a sparse file. 4. Now to reallocate some space taken by music.mp3 as free space so that it will only takes 30MB of space. Simple calculation shows that 67.6MB of space taken has to be reallocated as free space so that music.mp3 only takes 30MB. 67.6MB = 67600000 30MB = 30000000 Values above are not exactly a correct conversion. Do it yourself. 5. Back to command prompt, type: CODE fsutil sparse setrange music.mp3 0 67600000 This will reallocate a continuous 67.6MB from the start of the music.mp3 file as free space, and now music.mp3 file will only takes around 30MB (well it is actually 33MB - make your own conversion) of HD space. The 0 value above can by anything really, but not exceed 30000000. |
|
|
May 9 2006, 05:11 PM
Return to original view | Post
#3
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
QUOTE(virtual @ May 9 2006, 03:58 PM) Are you guys sure fsutil will work? If you create 100 MB with 60 MB contains zero or null, it is still 100MB file not 40 MB file i believe. Using fsutil to create fake files should works fine.The only way can do what the thread starter wants is intercepting system calls. However, i only knew how to do it in DOS though. Never tried system programming yet in WIN32. The fake file created with fsutil.exe will report to be 100MB but only really takes 30MB of HDD space. There are no cheats and the disk and system stability is not compromised. This will only work on NTFS drives though. |
|
|
May 9 2006, 08:12 PM
Return to original view | Post
#4
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
|
| Change to: | 0.0140sec
0.53
7 queries
GZIP Disabled
Time is now: 22nd December 2025 - 10:59 PM |