DelDaysOld
Novell Cool Solutions: Cool Tool
Reader Rating 
In Brief
An easy way to schedule to prune files based on age.
Vitals
- Product Categories:
- eDirectory
- Secure Identity Management
- Functional Categories:
- Cleanup
| Posted: | 7 Sep 2006 |
| File Size: | 423KB |
| License: | Free |
| Download: | /coolsolutions/tools/downloads/DelDaysOld.zip |
| Publisher: | Bryan Keadle |
Disclaimer
Please read the note from our friends in legal before using this file.
Details
We keep a number of logs and various backup files. These files can get dated, and I wanted an easy way to be able to schedule a task to run that would prune these files based on age. My utility, (Del)ete (Days) (Old) (DelDaysOld.exe) does just that.
By default, you specify a root directory to start from, and it will process all subdirectories, deleting files older than the number of days you've specified. For more granular control, an .INI can be created like this to provide the indicated options:
[Settings]
;=== Multiple directories specified, delimited by pipe delimiter
Dir2Process=Dir1 | Dir2 | Dir3 | ...
;=== file specifications, delimited by pipe
FileMasks=*.~*|~*.*|*.??~|*.--?|*.tmp|*._mp|*._mp|*.old|*.bak|*.syd|*.chk|*.gid|mscreate.dir|0???????.nch|*.dmp
;=== Confirm deletions
ConfirmDel=Yes|No
;=== number to specify the number of subdirectories deep to process. Default "*" is to process all subdirectories
Depth=*
;=== Age of files' timelimit (defined below) to delete. Example below specifies to delete files that are 0 years, 14 days, 0 hours, 0 minutes, and 0 seconds old
TimeLimitYdHms=0:14:0:0:0
;=== Timelimit defined by Created or Modified or Accessed date
TimeField=Created|Modified|Accessed
Enjoy!
SYNTAX:Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com