"call exit" - Exit batch file from call subroutine

Microsoft Windows
Post Reply
PiotrMP006
Posts: 8
Joined: 2021-Sep-01, 10:57 am

"call exit" - Exit batch file from call subroutine

Post by PiotrMP006 »

Code: Select all

call exit
Is this the only effective way to exit batch file from call subroutine?
User avatar
Simon Sheppard
Posts: 103
Joined: 2021-Jul-10, 7:46 pm
Contact:

Re: "call exit" - Exit batch file from call subroutine

Post by Simon Sheppard »

I tend to use Goto :eof

Both options are described here: https://ss64.com/nt/call.html
PiotrMP006
Posts: 8
Joined: 2021-Sep-01, 10:57 am

Re: "call exit" - Exit batch file from call subroutine

Post by PiotrMP006 »

Both options are described here: https://ss64.com/nt/call.html
The "call exit" solution is not described here "https://ss64.com/nt/call.html" !!!
User avatar
Simon Sheppard
Posts: 103
Joined: 2021-Jul-10, 7:46 pm
Contact:

Re: "call exit" - Exit batch file from call subroutine

Post by Simon Sheppard »

PiotrMP006 wrote: 2022-Jul-18, 6:54 am
Both options are described here: https://ss64.com/nt/call.html
The "call exit" solution is not described here "https://ss64.com/nt/call.html" !!!
It is described in the section:
CALL a subroutine (:label)
Post Reply