| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- @echo off
- setlocal enabledelayedexpansion
- :: 检查并终止FurnaceUI进程
- tasklist /fi "imagename eq FurnaceUI.exe" 2>nul | find /i "FurnaceUI.exe" >nul
- if %errorlevel%==0 (
- taskkill /f /im FurnaceUI.exe
- ) else (
- echo 未找到FurnaceUI进程。
- )
- :: 检查并终止FurnaceRT进程
- tasklist /fi "imagename eq FurnaceRT.exe" 2>nul | find /i "FurnaceRT.exe" >nul
- if %errorlevel%==0 (
-
- taskkill /f /im FurnaceRT.exe
- ) else (
- echo 未找到FurnaceRT进程。
- )
- :: 检查并终止FurnaceGasPanelUI进程
- tasklist /fi "imagename eq FurnaceGasPanelUI.exe" 2>nul | find /i "FurnaceGasPanelUI.exe" >nul
- if %errorlevel%==0 (
-
- taskkill /f /im FurnaceGasPanelUI.exe
- ) else (
- echo 未找到FurnaceGasPanelUI进程。
- )
- start .\..\FurnaceRT\FurnaceRT.exe
- REM 检测RT是否在端口8752监听
- :check_port
- timeout /t 1 >nul
- netstat -an | find "LISTENING" | find ":8752" >nul
- if %errorlevel% neq 0 goto :check_port
- start .\..\FurnaceUI\FurnaceUI.exe
- start .\..\FurnaceGasPanelUI\FurnaceGasPanelUI.exe
|