Search CFJ

April 14, 2008

Script: Clean up files and folder locations with logging and email

Obviously, this one is geared toward the network admins and system administrators out there.

I had a need to clean up some temp folders on a system every week or so because a poorly written application was filling up the drive with remnants of its daily operations...occasionally causing the process to stop.

Nothing like killing yourself slowly, eh?

Anyway, I had a script that was written by Tom Andre which cleared out a specified folder and emailed you the results of the process. This was great, but I wanted to expand on this a little bit and give it a way of accepting and cleaning a given list of paths.. Also, I wanted logging so I could tell if there was an error during processing.

So, I added those features and it is working nicely! Download the script here: http://goo.gl/pluRJ [community_spiceworks_com]

(Updated 12/06/2010) - many features added.  Check them out in the Spiceworks description!

0 comments: