Phil Robyn wrote:
> Scott Closter wrote:
>> 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?
>
> Download the free program FORFILES.EXE from
> ftp://ftp.microsoft.com/ResKit/y2kfix/x86/
The syntax for deleting the files would be:
forfiles.exe -p C:\Test -m *.* -d-X -c "cmd /c del @FILE"
Instead of X use your X+1 as value.
If you need to include hidden files, add /a, for files in subfolders /s to
the DEL command.
(Tested on Windows Server 2003).
Best greetings from Germany
Olaf.