BAT FILE TO DELETE FILES OLDER THAN X DAYS DOS

forfiles /p “D:TestingSample” /s /d -10 /c “cmd /c del /s /q @file”

D:TestingSample is the root directory it starts looking in

-10 is the number of days that the script goes back, deleting all files older than that date.

This can be helpful for someone that has a utility that creates large LOG files each day that need to be deleted periodically. It can also be a good idea for clients who have recurring DMP files created that RP cannot pin down.

Use with caution!