#153487 - 2005-12-15 04:40 PM
Re: Utility to create files with random size
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
or.....
something like this?
Code:
fatfile("test.dat",5000)
Function FatFile($file,$size) dim $fh dim $data[$size] $data = join($data," ") $fh = FREEFILEHANDLE if exist($file) del $file endif $ = open($fh,$file,5) $ = writeline($fh,$data) $ = close($fh) endfunction
Bryce
|
Top
|
|
|
|
#153490 - 2005-12-15 07:28 PM
Re: Utility to create files with random size
|
Mart
KiX Supporter
   
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
|
|
Top
|
|
|
|
#153492 - 2005-12-15 09:05 PM
Re: Utility to create files with random size
|
Mart
KiX Supporter
   
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
|
Looks like I got screwed by FSUTIL. Created a 50GB file, deleted it and my disk says it has only 10GB free and it should be around 60GB. Did a reboot, still screwed up  And YES I did empty the recycle bin.
Hmmmmmm… will have to look into that.
Edited by Mart (2005-12-15 09:06 PM)
|
Top
|
|
|
|
#153499 - 2005-12-15 10:46 PM
Re: Utility to create files with random size
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11625
Loc: CA
|
createnew : Creates a file of the specified name and size, whose content consists of zeroes. FSUTIL Documentation
Quote:
Fsutil
Fsutil is a command-line utility that you can use to perform many FAT and NTFS file system related tasks, such as managing reparse points, managing sparse files, dismounting a volume, or extending a volume. Because fsutil is quite powerful, it should only be used by advanced users who have a thorough knowledge of Windows XP. In addition, you must be logged on as an administrator or a member of the Administrators group in order to use fsutil.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1574 anonymous users online.
|
|
|