mabuse.de

Results Negative

Search

About

This page contains a single entry from the blog posted on July 17, 2008 6:29 PM.

The previous post in this blog was Write Once, Read Never.

The next post in this blog is On Recession-Proof Jobs.

Many more can be found on the main index page or by looking through the archives.

« Write Once, Read Never | Main | On Recession-Proof Jobs »

TidyUp Revisited

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.

TrackBack

TrackBack URL for this entry:
http://www.mabuse.de/cgi-bin/MT/mt-tb.cgi/338

Comments (2)

I'm lucky my computer does that for me....

MadScientist Author Profile Page:

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...

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)