:: @echo off :: start "" "..\\analysis-system\\analysis-system.exe" @echo off chcp 65001 > nul setlocal EnableDelayedExpansion tasklist | find /I "analysis-system.exe" > nul if "%ERRORLEVEL%"=="0" ( echo 程序正在运行 timeout /t 3 /nobreak > nul exit /b ) else ( echo 程序没有运行 start "" "..\\analysis-system\\analysis-system.exe" )