goto:eof and endlocal

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
shadeclan
Posts: 61
Joined: 02 Jun 2011 11:29
Location: USA - Somewhere between Albany NY and Bennington VT

goto:eof and endlocal

#1 Post by shadeclan » 30 Jan 2012 10:23

Quick question - does goto:eof do an implicit endlocal? It appears to do so. I was just looking at some of my code and wondering if I had to call endlocal before the goto:eof.

dbenham
Expert
Posts: 2404
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: goto:eof and endlocal

#2 Post by dbenham » 30 Jan 2012 11:22

Yes.

shadeclan
Posts: 61
Joined: 02 Jun 2011 11:29
Location: USA - Somewhere between Albany NY and Bennington VT

Re: goto:eof and endlocal

#3 Post by shadeclan » 30 Jan 2012 11:26

Excellent! Thanks!

Post Reply