批处理脚本,等待应用执行完成后,执行另一个应用的批处理脚本

@echo off
echo 正在执行Analysis_I.m文件...
:: start /w Main_Analysis_I.m /q
start /w matlab -nodisplay -nosplash -nodesktop -r "run('Analysis_I.m'); quit"
:wait
timeout /t 1 >nul
tasklist | find /i "matlab.exe" >nul
if errorlevel 1 goto end
goto wait
:end
echo 执行Analysis_I.m程序结束
:: timeout /t 20 /nobreak
echo 正在解析数据...
start /w ConvertDataApp.exe
echo 解析数据结束...


pause

posted on 2024-06-25 17:08  #知了  阅读(1)  评论(0编辑  收藏  举报