how to do file house-keeping on windows 2003

Without “Forfiles” command, you maybe write a script with few hundred line, finally windows come with this handy command.

This will delete .ARC files in d:\oraarch directory older than 10 days.

Forfiles -p d:\oraarch -s -m *.arc -d -10 -c "cmd /c del /q @path"

Leave a Reply