Need to clean up directories that are clogged up with too many old files, and to do this automagically? If you're using a Windows box try my TidyUp script. Here's an example:
cscript tidyup.vbs -f c:\temp -d 20 -i "log|bak|tmp"
This will delete all .log, .bak, and .tmp files in c:\temp. If you want to delete all files in c:\temp, omit the -i parameter. If you aren't sure about the effects of your command, just append the -a parameter that does everything but delete the files. Just read the manual and copy the code.
Comments (2)
I'm lucky my computer does that for me....
Posted by Lorraine | July 18, 2008 3:31 PM
Posted on July 18, 2008 15:31
Really sure? If one of your applications writes a logfile, a new one every day, without taking care that some day your hard drive will be full, then you might need a tool like TidyUp. I'm working with several servers and sometimes their drives get quite messy. Surprisingly, there are no tools coming with Windows that "automagically" would keep the disk clean...
Posted by MadScientist
|
July 20, 2008 2:59 AM
Posted on July 20, 2008 02:59