Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
I need a batch program to delete files and folders that are 14 days old on a regular basis. I want this program to be able to use the task scheduler in windows.Thank you

There a little program called Obsolete. I've attached the ReadMe from it. I tried finding it again but couldn't. I think it's the best!
OBSOLETE: Clean old junky files. Version 1.00. Jul 05 1992
Copyright (c) 1991 by Yossi Gil, P.O.Box 3148, Jerusalem, ISRAEL.Usage: obsolete [flags] age [-f] pattern [dir]
Will recursively remove all files which older than 'age' which match 'pattern'.
Recursive scan starts from the current working directory or from 'dir' if
specified. 'age' is a sequence of pairs <N unit> where N is an optional number
and 'unit' is seconds, minutes, hours, days, weeks, moths or years. 'flags' are
one or more flag characters preceded by "- optionally followed by "+" for
turning flag on (default), or "-" for turning it off.FLAGS -h Print this message and exit
-H+ Remove hidden files too -R- Do not recurse into subdirectories
-S+ Remove system files too -W+ Remove write protected files too
-i+ Ask before removing file -I+ Ask before overriding write protect
-s Silent: don't list files -n Do nothing: just list filesEXAMPLES
obsolete 2 weeks *.tdk c:\ Remove all drive C: 2 weeks old .tdk files
obsolete -R- 2 days *.bak Remove 2 days old .bak files from current dir obsolete day *.* \brief\backup Remove day old files from backup dir
obsolete -n 3 years *.exe \bin List all 3 years old .exe files in \bin
obsolete -s -HSW second *.@@@ \ Silently remove ALL (junk?) .@@@ files

![]() |
How to block internet con...
|
PGP, Win PT
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |