Rich wrote:
Quote:
> Wow, I think that is like 90% what I'm looking for. Looks like that
script
Quote:
> deletes the files out of all subfolders. I only need to have it delete
files
Quote:
> of MaxAge out of specifically named subfolders, like Folder1 and Folder2
in
Quote:
> 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
Quote:
> 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.
Interestingly enough, it has provision for what you want. You just set the
constant "Recursive " to FALSE, then it will not look for files in
subfolders.
Quote:
>
> "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
Quote:
Quote:
Quote:
> > > 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
Quote:
Quote:
Quote:
> > > under that there are a couple folders with unique names, lets call
them
Quote:
Quote:
Quote:
> > > Folder1 and Folder2, that I need to clear out of any files older than
a
Quote:
Quote:
Quote:
> > > 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.