@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。
@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。