代碼: 選擇全部
echo 1start
call 2.bat
echo 1end
若是要不等待, 繼續往下走, 則必須配合外部指令 start 如下:
代碼: 選擇全部
echo 1start
start 2.bat
echo 1end
當然, 若是另起 console 而且要等待, 可以多加 /w 參數到 start 後方即可.
代碼: 選擇全部
echo 1start
call 2.bat
echo 1end
代碼: 選擇全部
echo 1start
start 2.bat
echo 1end