Page 1 of 1

Delete Files Older than 30 days

Posted: 15 Jul 2009 01:16
by timhatz
How would I do a script, that I can hardcode 6 paths, and have all the files in those paths, be deleted if older than 30 days?

Thanks, Tim

Re: Delete Files Older than 30 days

Posted: 15 Jul 2009 02:18
by TheQwerty
What I would do is...

1) Create a Find Template, that searches those locations for items older than 30 days.

2) Use LoadSearch and Delete in a script to automate the task. Such as:

Code: Select all

"Delete TooOld"
  LoadSearch("TooOld", "rel");
  Focus("List");
  Sel("a");
  Delete(1,1,":list");