bat文件中調用另外兩個bat運行

@echo off
start d:\1.bat
start c:\2.bat

這樣是2個任務同時執行,應該怎麼改。

@echo off
start /wait d:\1.bat
start /wait c:\2.bat
  
@echo off 
call d:\1.bat
call c:\2.bat

start 是在新窗口運行調用的文件,call是在當前的窗口運行。 start /wait是指啓動應用程序並等待其結束;順序執行bat的方式是使用call xxx.bat。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章