Search found 2 matches

by poit
2022-Dec-16, 12:30 pm
Forum: Windows CMD Shell
Topic: "call exit" - Exit batch file from call subroutine
Replies: 7
Views: 5989

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

let me clarify: what i meant is leaving more than one level of subroutine nesting with a single effort. like plain exit does (but is just rude and should never be used :P ) like maybe for a generic "print-Error & ret-status", potentially saving you lots of exit /b glue seeing how there...
by poit
2022-Dec-09, 10:18 pm
Forum: Windows CMD Shell
Topic: "call exit" - Exit batch file from call subroutine
Replies: 7
Views: 5989

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

ok but is there a way to exit the batch from within a subroutine without closing the running shell?
like call exit /b, that's not doing it :roll: