[thelist] Deleting files in folder

Maximillian Schwanekamp lists at neptunewebworks.com
Mon May 23 11:17:50 CDT 2005


Sam Carter wrote:
> Looking for an "easy" automated way to delete files in a folder that are 
> more than 3 weeks old.

Someone else likely has a better suggestion, but Windows 2003 Resource 
Kit[0] has Robocopy, an updated version of "Robust File Copy" dating 
from NT days.  Make a bat file to call robocopy to move files to a 
specified trash directory (/MOV), and optionally delete all files from 
that directory (using /PURGE since they'll no longer exist in the source 
dir).  Set a Win scheduled task to call that bat file daily or whatever.

[0] http://url123.com/xbhzq

-- 
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/



More information about the thelist mailing list