Recommend file purge command line utility for Windows 2000/2003 servers

  • Thread starter Thread starter Klaus
  • Start date Start date
K

Klaus

I'm searching for a reliable command line driven file purge utility
(freeware, shareware or commerical) that deletes files based on the
file creating or update date/time stamp. For example deleted all files
that are older than 10 days.

The utility has to work on both Windows 2000 and 2003 server
plateforms. Any recommendations are welcome.
 
I'm searching for a reliable command line driven file purge utility
(freeware, shareware or commerical) that deletes files based on the
file creating or update date/time stamp. For example deleted all files
that are older than 10 days.

The utility has to work on both Windows 2000 and 2003 server
plateforms. Any recommendations are welcome.

Download DELOLD from tip 274 in the 'Tips & Tricks' at http://www.jsiinc.com

Run:
delold "FolderPath" 10

I don't think it enumerates sub folders, so you could:

delold "FolderPath" 10
for /f "Tokens=*" %%a in ('dir "FolderPath" /b /s /AD') do (
delold "%%a" 10
)


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top