Thank you, rjbull. Can it delete files older than just a few minutes? Or can it delete per file extension type only?
Yes to both; "age" is age in days
, not minutes.
DelAge32 - ver. 2.3 (c) 2003-2008, Horst Schaeffer
Deletes or moves files (path with file pattern) by age (number of days)
Syntax: DelAge32 filespec age [options]
/created /accessed /modified (default) - file stamp used to evaluate age
/includeRO - include read-only files
/includeH - include hidden files
/includeS - include system files
/includeRHS -include read-only, hidden and system files
/recurse - include subdirectories
/subonly - /recurse excluding initial directory
/rd - remove empty subdirectories
/move path - move files to specified path
/preview - list, but no action
/quiet - no output
The process is: I download MWA music files, I convert them to MP3, I delete the downloaded files (wma and m3u), and obviously keep the converted ones, except the '.tunebite' that the converter created. The files to be deleted are placed in various subfolders, and seldom older than a few hours.
I do something similar. I prefer to edit most of my forum posts in my text editor, and I use Text Editor Anywhere
(TEA) as an aid in transferring text between forum and editor. TEA saves its files. I regularly archive them, but don't move
them into the archive as I like to leave the most recent ones readily available. The same batch file runs delage to delete all the ones that are 32 days or more old, by which time I wouldn't expect to need quick reference to them. My current cleanup.bat
, which does other things as well, looks something like this:
:: archive all Text Editor Anywhere text files (not just forum posts, all Web forms)
"c:\Program Files\WinRAR\Rar.exe" u -ep -log="c:\Users\rjbull\backup\ForumPostBackups.log" "c:\Users\rjbull\backup\ForumPostBackups.rar" "c:\NoInst\Text Editor Anywhere\Temp\*.txt"
:: Clean up
c:\DOS\Utils\delage32.exe "c:\NoInst\Text Editor Anywhere\Temp\TextEditorAnywhere*.txt" 32 /quiet
c:\DOS\Utils\delage32.exe "c:\NoInst\Text Editor Anywhere\Temp\TextEditorAnywhere*.bak" 10 /quiet
c:\DOS\Utils\delage32.exe "c:\Users\rjbull\Documents\HippoEdit_backups\*.*" 32 /recurse /quiet
Note that I've set different deletion ages for *.txt and *.bak files.