Seriously. The documentation is a lie
"CANCEL command - Terminate batch file processing
The CANCEL command ends all batch file processing, regardless of the batch file nesting level. Use QUIT to end a nested batch file and return to the previous batch file. "
I'm literally echoing "returning to the command line" immediately before CANCEL.
Yet... it returns to the calling BAT file.
That's what the documentation says QUIT...
Read more
"CANCEL command - Terminate batch file processing
The CANCEL command ends all batch file processing, regardless of the batch file nesting level. Use QUIT to end a nested batch file and return to the previous batch file. "
I'm literally echoing "returning to the command line" immediately before CANCEL.
Yet... it returns to the calling BAT file.
That's what the documentation says QUIT...
Read more