https://zhuanlan.zhihu.com/p/621572002
这篇文章说得很好,我直接贴链接了
网页截图(防止网页失效):另外,附上自己的代码表示尊重:
@echo off
tasklist /FI “IMAGENAME eq rlm.exe” 2>NUL | find /I /N “rlm.exe”>NUL
if “%ERRORLEVEL%”==“1” (
start “” “C:\Program Files\Tecplot\Tecplot 360 EX 2020 R1\bin\AMPED\rlm.exe”
timeout /t 2 /nobreak
)
start “” “C:\Program Files\Tecplot\Tecplot 360 EX 2020 R1\bin\tec360.exe”
还有就是用上面的方法改完以后,tecplot图标会改变成下图