From 641142039bd63c34286fb505e176acaec27f406b Mon Sep 17 00:00:00 2001 From: KQL Date: Wed, 24 Sep 2025 14:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E5=BC=95=E5=8F=B7=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 'tatus' 和 '[Q]' 命令未识别错误 - 使用 %~2 去除参数中的引号 - 简化菜单选项显示格式(A/S/Q不使用方括号) --- start-industry.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/start-industry.bat b/start-industry.bat index 78efa3d..5f1e682 100644 --- a/start-industry.bat +++ b/start-industry.bat @@ -30,9 +30,9 @@ echo [10] Chemical Industry / 化工产业 (Port: 5159) echo [11] Energy Industry / 能源产业 (Port: 5160) echo [12] Environmental / 环保产业 (Port: 5161) echo -------------- -echo [A] Stop All / 停止所有 -echo [S] Status / 查看状态 -echo [Q] Exit / 退出 +echo A - Stop All / 停止所有 +echo S - Status / 查看状态 +echo Q - Exit / 退出 echo. set /p choice="Enter your choice / 请输入选项: " @@ -140,7 +140,7 @@ goto MAIN_MENU :START_INDUSTRY set dir=%1 -set name=%2 +set name=%~2 set port=%3 echo. @@ -245,7 +245,7 @@ goto MAIN_MENU :CHECK_PORT set port=%1 -set name=%2 +set name=%~2 netstat -an | findstr ":%port%" >nul 2>&1 if %errorlevel%==0 ( echo [RUNNING] %name% - Port: %port%