开发者

Execute batch file after another batch file completes [duplicate]

开发者 https://www.devze.com 2023-01-02 23:20 出处:网络
This question already has answers here: Closed 10 years ago. The community reviewed whether to reopen this question 1 year ago and left it closed:
This question already has answers here: Closed 10 years ago.

The community reviewed whether to reopen this question 1 year ago and left it closed:

Original close reason(s) were not resolved

Possible Duplicate:

How to call one batch file after another

I have a batch file coordinating the activity of two other batch file. How can I make it execute the second batch file only after the first bat file finishes execut开发者_如何学编程ion (execute the sequentially). I do not care if the first batch file executes successfully or not.


Use call to continue the execution of the first file, like:

echo batch controller
call batch1.bat
call batch2.bat
echo batch controller running again


They will execute sequentially naturally unless your first one is spawning processes without waiting. See START /WAIT for a way to start a process on the command line, but wait for it to finish before proceeding.

0

精彩评论

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