@wonko, would you be able to write a batch script that automates creating files with a given size until we reach a given limit?
Well, sure, that is trivial (and again there is NO need WHATSOEVER to create random data, a simple 00's file would do).
FOR /F "tokens=3 delims= " %%A IN ('DIR C:\') DO SET FreeSpace=%%A
Should set FreeSpace to "freespace" (in bytes).
should get rid of separators.
Then you can use my divide batch code:
to divide the above FreeSpace by the size of the intended file to be generated (all in bytes) FileSize.
Then you do something like:
SET FileNum= (the result of the division above)
FOR /L %%A IN (1,1,%FileNum%) DO fsz.exe %random%_empty_%%A.000 %FileSize%
The issue may be the stupid XP nagging you about filesystem being overfilled (AND it wouldn't be a good idea to have the thingy running on a system with pagefile set on C:\ AND with "dynamic sizing").
Then you run again the batch using a smaller filesize (depending on how much residual space is found by a new DIR C:\ ), i.e. you "converge" until no sector is left free.
Just FYI, the thing about company policies is b*llsh*t, you are either tasked by the company to do something AND they provide you the right meand to do so (the Admin password of that machine) because they trust you or you are doing this WITHOUT authorization and thus you are not only breaking the company policies but additionally potentially make unreplaceable files (assets of the company) irrecoverable (which in many countries may constitute a criminal offence ).
P.S.: Before I forget, this may also be of use /though as said not *needed*):
AND, strangely enough, the idea is NOT entirely "new" :
©2008 CyLog Software
FillDisk is a simple utility that fills up a disk with data. It starts with 1GB files, then drops to 512MB, 256MB and so on until it fills up completely the disk with files.
The reasons why you would want to do something like that include:
testing applications when disks are approaching full capacity
shredding the empty space of a hard disk
FillDisk has a very simple interface, just enter a folder for the files to be created and press the "Go" button. You can stop the operation att any point in time. The file that is currenly being written will close and FillDisk will stop.