troubleshooting Question

Require variables for scirpt to delete SQL back-up files older than 30 days

Avatar of wilsonkjit
wilsonkjit asked on
Windows Server 2003Microsoft Legacy OSMicrosoft Applications
5 Comments3 Solutions278 ViewsLast Modified:
Hi all,

I require a date range or date modified variable for a script that will be designed to delete all files from a folder older than 30 days.

Currently this folder of ours is growing at around 3GB+ a day, so rather than monitoring it every month I would like to schedule a script to do it for us.

I was thinking of using the del command but as it stands I cannot get the syntax correct.

Any help would be appreciated.

Join our community to see this answer!
Unlock 3 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros