如何调用了一个又一个批处理文件 [英] How to call one batch file after another
问题描述
我有我测试的批处理文件,所有我想要做的是以下
CALL ping.bat
然后该批处理文件运行后我想运行其他文件:
CALL ping2.bat
现在,我有一个批处理文件,在彼此身边这两行的第一个批处理文件将成功发射,但第二个没有。有什么建议?
CALL ping.bat
CALL ping2.bat
平蝙蝠仅仅是:
平127.0.0.1
确认你没有退出
某处第一批。有些人习惯性地用它来跳出一个批处理文件,不是退出一批的正确方法的(退出/ B
或转到:EOF
是)。
另一种选择是,你可以称之为另一批在第一个的没有的呼叫
。
I have a batch file that i am testing, all i want to do is the following
CALL ping.bat
Then after that batch file has run i want to run another file:
CALL ping2.bat
Right now i have these two lines beside each other in a batch file the first batch file will fire successfully but the second one does not . Any suggestions?
CALL ping.bat
CALL ping2.bat
Ping .bat is just:
ping 127.0.0.1
Check that you don't have exit
somewhere in the first batch. Some people habitually use that to jump out of a batch file which is not the proper way to exit a batch (exit /b
or goto :eof
is).
Another option is that you might call another batch in the first one without call
.
这篇关于如何调用了一个又一个批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!