hey all my friends!
I've got a small and easy question! I want to full the Drive D with dummy file. I used the follwing code, but sometimes it works and sometimes not.
what's the problem???
var Dummy_File : TFileStream;
Free_Space : Int64;
begin
Free_Space := DiskFree(4);
Dummy_File := TFileStream.Create('D:\Dummy_File.dum',fmCreate);
Dummy_File.Size := Free_Space;
//Even deleting the following line, wont change any thing
Dummy_File.Free;
end;
Edited by Roger, 05 March 2013 - 09:49 AM.
added code tags
















