batch getlabel - how to ignore single error?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
mcusack
Posts: 4
Joined: Wed Aug 26, 2009 7:40 am

batch getlabel - how to ignore single error?

Post by mcusack » Wed Aug 26, 2009 8:08 am

i'm running a batch getlabel script that gets hundreds of files. it errors on one of the files with "could not find label" and then aborts.
is there any way to ignore individual error & continue the remaining getlabel files?
thanks

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: batch getlabel - how to ignore single error?

Post by lbauer » Thu Aug 27, 2009 7:27 am

Are you getting files that all have the same label, or do the files have different labels?
Linda Bauer
SourceGear
Technical Support Manager

mcusack
Posts: 4
Joined: Wed Aug 26, 2009 7:40 am

Re: batch getlabel - how to ignore single error?

Post by mcusack » Wed Sep 02, 2009 7:43 am

they are all the same label.
i reverted back to individual calls to getlabel for each file but it takes a long time.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: batch getlabel - how to ignore single error?

Post by lbauer » Wed Sep 02, 2009 3:33 pm

Have you tried doing a Getlabel on the parent folder, rather than on individual files/
Linda Bauer
SourceGear
Technical Support Manager

mcusack
Posts: 4
Joined: Wed Aug 26, 2009 7:40 am

Re: batch getlabel - how to ignore single error?

Post by mcusack » Thu Sep 03, 2009 7:10 am

i haven't but i will give it a try.
thanks!

mcusack
Posts: 4
Joined: Wed Aug 26, 2009 7:40 am

Re: batch getlabel - how to ignore single error?

Post by mcusack » Thu Sep 03, 2009 8:01 am

that sort of worked.
as long as there's 1 file in the folder that has the label it will get that and then it will continue on to the next folder.
if there are no files with the label in the folder, it aborts.

Post Reply