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
batch getlabel - how to ignore single error?
Moderator: SourceGear
Re: batch getlabel - how to ignore single error?
Are you getting files that all have the same label, or do the files have different labels?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: batch getlabel - how to ignore single error?
they are all the same label.
i reverted back to individual calls to getlabel for each file but it takes a long time.
i reverted back to individual calls to getlabel for each file but it takes a long time.
Re: batch getlabel - how to ignore single error?
Have you tried doing a Getlabel on the parent folder, rather than on individual files/
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: batch getlabel - how to ignore single error?
i haven't but i will give it a try.
thanks!
thanks!
Re: batch getlabel - how to ignore single error?
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.
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.