Avatar of PDSWSS

asked on 

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

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.
Microsoft DOSStorage SoftwareWindows Server 2008

Avatar of undefined
Last Comment
Steve Knight

8/22/2022 - Mon