假设有start.bat
想在中途执行tmp.bat
执行完了想返回,继续执行别的,那么这样做。
@echo off
:: 我是start.bat
echo 开始
rem tmp.bat 执行不回头
rem start tmp.bat 新开窗口和进程,不等待继续执行start原本命令
call tmp.bat 等待执行完毕回头继续执行start余下部分
这样说来应该很清楚了。
假设有start.bat
想在中途执行tmp.bat
执行完了想返回,继续执行别的,那么这样做。
@echo off
:: 我是start.bat
echo 开始
rem tmp.bat 执行不回头
rem start tmp.bat 新开窗口和进程,不等待继续执行start原本命令
call tmp.bat 等待执行完毕回头继续执行start余下部分
这样说来应该很清楚了。