|
-
April 13th, 2006, 02:22 PM
#1
Junior Member
Batch file that will delete files older than x
Hey folks. I have a nightly batch file that downloads 2 files to separate archive folders that are both contained in the same parent directory. The files are just for backup purposes, and are only needed to be stored for maybe a month or two before they are no longer needed.
So as not to have more of these backup files then are needed and using up HD space, I'm looking for a way to have the last step in my batch file delete any of the previously archived files that are older than a specified age, i.e. 2 months. Any suggestions on the code/line I can add to the batch file that might accomplish this task? Thanks in advance.
Jim
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|