Delete files by date

HBMI
HBMI used Ask the Experts™
on
I am looking for a program/batch file to delete files in a specified folder that are older than 14 days.  I would like to put it in the job scheduler so it runs it every day.  I had this on my previous computer but the drive crashed and I was not able to recover any data.  Seems to me it was something called delete32 but not sure.  I am running windows 7.

Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"


http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial