Writng a batch file to automate a task

810 pts.
Tags:
Batch file to backup
Batch files
NAS
NAS backup
Scripting
Windows 7
Windows XP
Hi All, I am only new to scripting and do not pretend to know a lot about it, with that said can anyone help me write a script/batch file to do the following. I create backups of client machines while they are repaired, these backups are then put on our NAS but after a period of 2 months from date of creation I want a batch file to automatically delete them. but only the files that are 2 months old other files that are not 2 months old I need left intact Is the possible or am I going to have to keep going through the files to see which ones are2 months old? Any help in this will be greater appreciated Kind Regards Shane

Software/Hardware used:
windows xp, windows 7
ASKED: September 11, 2010  6:38 PM
UPDATED: September 13, 2010  1:56 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

This question has been asked before.

Please use the search feature of the site and you will find some answers using the FORFILES utility, and some other options using bat and/or vbscript.

Let us know if you need additional help.

——————-

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • shanekearney
    Thank you very much
    810 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following