Possible to make a tempory download folder?

Soldato
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
Is it possible to write some kind of little script that places restrictions on a folder, for instance things over a certain ages are automatically moved to the recycle bin, and when the folder reaches a predetermined size the older thing is deleted to make room? I can see how i could make a cleaning script pretty easy just checking file dates, but i can't think of an easy way to delete files to make room or at least set a size limit on a folder?

I'm not too sure of the benefits of setting a size limit/overwrite policy yet though, but it seems like it might be a good idea, thoughts?

Basically i'm just trying to keep track of my bit and bobs download folder that i throw everything into and forget about, then every so often trawl through to see what was useless and what wasn't... Could be handy for a few people i imagine :)
 
I'd be interested in this too. I have a folder on my storage drive that everything points to for downloading - Opera, Msn etc., but the only way I use it is to religiously clean it each week.
 
Should be possible in a batch file using attrib and deltree /y but I have no idea how to actually set up a conditional statement in a batch.
There's a few batch tutotials out there and this sounds like the sort of thing they may cover.
 
Hmmm i've been searching around and i've not found much in the way of help on this subject, i'm not cmd expert and i'm not sure about if statements on attributes/filenames/date modified etc... in conjunction with del, any ideas?
 
The easiest way of doing it is to use Robocopy to move everything older than a certain age to a second temp folder then delete that second folder.
 
Yeah that actually dawned on me before :D

//Edit: Now i'm trying to work out what i want to purge.... I'm guessing in my download folder old zips, rars and exes are extracted, used and moved in need be within 2 weeks, so they're gone. Now i'm not sure what to do about the small files i seem to collect left over... Or video files... Hmmmm
 
Last edited:
Back
Top Bottom