开发者

Batch Script and Exit

开发者 https://www.devze.com 2023-03-13 02:57 出处:网络
I have a main batch script that calls out to some sub batch scripts, which end with the EXIT keyword.This, in turn, let m开发者_StackOverflow中文版e out to the command prompt again. Is there any way t

I have a main batch script that calls out to some sub batch scripts, which end with the EXIT keyword. This, in turn, let m开发者_StackOverflow中文版e out to the command prompt again. Is there any way to capture the EXIT in the main script and then just run the next line?

Thx


You should use call when you call another script.

...
call someother.cmd
...
0

精彩评论

暂无评论...
验证码 换一张
取 消