help regarding goto LABEL

View: New views
1 Messages — Rating Filter:   Alert me  

help regarding goto LABEL

by Raagu () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello I have a bat script which conatins

a for loop

for  ******** do call :LABEL1

:LABEL1
//here my code

:LABEL2
//mycode
goto :LABEL3

:LABEL3
//bla bla




:LABEL4


Here After :LABEL3 completes it should go to for loop again for next iteration..
Then when one condition satisfies , then it should go to LABEL4 and execute from there..

Now In my code after :LABEL3 it is coming to LABEL4 .. I dont want that..
ANd after :LABEL3 i cant put goto for loop because , In for loop i am accessing a file,, So it will start from the beginning..

What do I Do for this ??
please reply..