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

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.
 
J

Jerold Schulman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top