Scott Closter said:
Is there a command line utility (delete does not seem to
have this function) where you can specify to delete files
older than a specied number of days?
You could do it with robocopy if you have it from the resource kit.
SOmething like this:
md %temp%\12345del
robocopy d:\stuff %temp%\12345del /s /mov /minage:10
rd /q /s %temp%\12345del
minage represents the minimum age in days to delete. 10 days or older in the
example above.
/s means move the files from subdirs as well.
/mov moves and deletes the source files. /move moves and deletes both files
and directories.
In summary, you are moving files x days and older to a temp dir. then
deleting the temp dir.
robocopy source destination /s /mov /minage:x
There are probably dedicated progs and batch solutions to do this but this
is nice and simple. robocopy is free in the 2003 server resource lit
(downloadable) and people say it works on 2K as well.