We help IT Professionals succeed at work.
Get Started

How would I write a cmd file that would delete folders that are greater than one day old?

589 Views
Last Modified: 2012-05-11
I  have set up  task manager in Windows Server 2008 R2 to back up an Access 2007 DB  every hour, 12 hours/day, every week day.
These files are saved as  .accdb files in  F:\backups\DATE.TIME   Everyday, 12 new  DATE.TIME folders containing the .accdb files are created in F:\backups

I need to write a .cmd file that will be triggered by task manager once a day to delete all DATE.TIME folders containing the .accdb files in F:\backups      that are  >  1 day old.
Thanks
Comment
Watch Question
IT Consultancy
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 2 Answers and 13 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE