I was wondering if anyone has an idea they can share regarding my scenario.

 

Currently I have a NAnt script that creates zips of our builds and puts them in a folder. I put the build number on the file like so: build.111.zip, build.112.zip, etc. This is cool because if we have to go back a couple of builds, it is easy to do so.

 

Here is my question: how could I script in NAnt the deletion of old builds, but keeping at least 5 previous builds. Basically, if I have build number “200”, I want to delete all builds “194” and below. It would turn into a kind of rolling delete.

 

Any thoughts? Thanks!

            ~Jon


The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender.

This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. PNC’s postal address is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to Unsubscribe. https://pnc.m0.net/m/u/pnc/uni/p.asp?

By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing list will not affect your subscription to alerts, e-newsletters or account servicing e-mails.

Reply via email to