Its very nice but i found another thing that i think it can be very usefull.
I was wondering if some one is interested in porting this to Purebasic?
Heres the link's
http://www.acc.umu.se/~bosse/
or if you whant to download
http://www.acc.umu.se/~bosse/filedisk.zip
then just run this to make a small empty file on your hard disk.
Code: Select all
Procedure makeSparse(Filename.s, FileSize.l)
Protected FileHandle.l
Protected ReturnValue.l
FileHandle = CreateFile(#PB_Any, Filename)
If ( FileHandle <> 0 )
FileSeek(FileSize - 1)
WriteByte(0)
CloseFile(FileHandle)
Else
ReturnValue = -1
EndIf
ProcedureReturn ReturnValue
EndProcedure
makeSparse("C:\Test.txt", 30*1024*1024) ; 30 Mbytes
This will add a new disk (virtual) to your windows expolorer.
The only problem is that i can only test on NTFS, i don't have any FAT Operating System to test it on.