diff --git a/base/shell/cmd/batch.c b/base/shell/cmd/batch.c index 671be4189d9..36600cd0720 100644 --- a/base/shell/cmd/batch.c +++ b/base/shell/cmd/batch.c @@ -478,6 +478,11 @@ INT Batch(LPTSTR fullname, LPTSTR firstword, LPTSTR param, PARSED_COMMAND *Cmd) ret = ExecuteCommandWithEcho(Cmd); FreeCommand(Cmd); } + if (bExit) + { + /* Stop all execution */ + ExitAllBatches(); + } /* Perform top-level batch cleanup */ if (!bc || bTopLevel)