Batch File: Return to caller?

user541686 picture user541686 · Jul 18, 2011 · Viewed 34.6k times · Source

What is the equivalent of the return statement for a batch file subroutine?

Answer

Greg Hewgill picture Greg Hewgill · Jul 18, 2011

It is:

goto :eof

This is understandably unusual for somebody accustomed to normal programming languages.

I found this info here.