cliffordgormley
asked on
need to delete files in specific folders that exceed 3 days in age
Hello,
Windows 7
I need to delete files in specific folders that exceed 3 days in age.
What is a good automated way to do this?
Thanks
Windows 7
I need to delete files in specific folders that exceed 3 days in age.
What is a good automated way to do this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@anuroopsundd
Could it be that you repeated my comment unintentionally?
Could it be that you repeated my comment unintentionally?
ASKER
Hello
I am getting the following error message.
D:\cliff\Documents\CliffFi lezillaVid eo>forfile s -p "D:\cliff\Documents\CliffF ilezillaVi deo\" -s -m *.* -d 3 -c "cmd /c del @path
ERROR: Invalid argument/option - '@path'.
Thanks!
I am getting the following error message.
D:\cliff\Documents\CliffFi
ERROR: Invalid argument/option - '@path'.
Thanks!
It's always useful to read the manual thoroughly :)
Try
FORFILES /P D:\cliff\Documents\CliffFi lezillaVid eo /S /d +03 /C "cmd /c del @path"
Try
FORFILES /P D:\cliff\Documents\CliffFi
you can get this running with task schedular so that it runs automatically.