Delete Files Older Than x Days - ForFiles.exe - Script Issues
Hi,
I'm having a little issue with a batch script that I've managed to create, using information from various posts and forums on the web but can't quite get it right.
Can anyone offer any help?
I'm wanting the script to check a folders contents by the age and delete anything over 5 days old, the script I have at the minute is as follows:
forfiles /p "Insert Directory Within the quotation marks" /s /D -10 /M *.* /C "cmd /C del @path /Q"