But Iam confused in scheduling the jobs for deleting. Here is the scenario:. We have scheduled full backups every night am, differential at every 6hrs and log backup every 1 hr. You can use the VBScript discussed here to delete files in sub-directories too. I'm using this with out any issues.. You must be logged in to reply to this topic. Login to reply. February 1, at pm Hi, We are using this VB script as a sql agent job to delete backup files older than a week.
Files 'Walk through each file in this folder collection. February 8, at pm Thank You. February 9, at am Thank You Where exactly I can insert this script in the original script I posted? Horner Ekkehard. Horner Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. Does anyone know how to script the deletion of old files? Thanks in advance. Hello richardrekos, You can consider using forfiles. Look at its help file or issue forfiles -?
That is an interesting option, thanks very much. Hi Mark, Thanks for your response. Thank again, Rich. That should be doing it. Regards, Mark. Be very careful to applying this. Further note: There are os-dependent factors on the commands used such as deltree here. Red Flag This Post Please let us know here why this post is inappropriate. Close Box. Log In Come Join Us!
0コメント