Wow, I think that is like 90% what I'm looking for. Looks like that script
deletes the files out of all subfolders. I only need to have it delete files
of MaxAge out of specifically named subfolders, like Folder1 and Folder2 in
my example. How could I make it do that?
For instance, under Users, say i have folders named Users000 through
Users100. Then under each Users### folder there are 12 subfolders, which
have subfolders, and buried somewhere in that subfolder mess are two folders
named Folder1 and Folder2. I only want to delete files of MaxAge within
Folder1 and Folder2. Deleting them from any other folder would be VERY bad.
"Pegasus [MVP]" wrote:
Quote:
>
> "Rich" <richjone@xxxxxx> wrote in message
> news
D70792B-327A-4572-B542-4EB18B80CCE3@xxxxxx Quote:
> > 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!!
>
> Have a look here:
> http://groups.google.co.kr/group/mic...9d6f3276436245.
>
>
>