View Single Post
Old 06-12-2009   #1 (permalink)
Rich


 
 

Clean out old files from multiple subfolders

Hey everyone. Does anyone have or would be able to write a script that would
go through a big folder structure, and only when it finds certain subfolders,
delete files of a certain age out of those specific subfolders?

I have a Users share, then a subfolder for each user, then a few levels
under that there are a couple folders with unique names, lets call them
Folder1 and Folder2, that I need to clear out of any files older than a month
from the current date when I run the script.

If I don't have to do this manually for a few hundred people, I might
actually see sunlight again haha. Thanks in advance!!
My System SpecsSystem Spec