From e1333ccb785125631bd9fb9d5b1e1948063a99c3 Mon Sep 17 00:00:00 2001 From: Agent Date: Fri, 20 Mar 2026 18:04:32 +0800 Subject: [PATCH] =?UTF-8?q?v1.1.2=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=84=9A=E6=9C=AC=E4=BD=BF=E7=94=A8=20ANSI=20(GBK)=20?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复问题: - Windows CMD 默认使用 ANSI 编码(GBK) - UTF-8 编码的 bat 文件在中文 Windows 上会显示乱码 修改内容: - 启动监控.bat 转换为 GBK 编码 - 使用 chcp 936 设置代码页为简体中文 --- scripts/启动监控.bat | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/启动监控.bat b/scripts/启动监控.bat index 60eee80..5da3eff 100644 --- a/scripts/启动监控.bat +++ b/scripts/启动监控.bat @@ -1,29 +1,29 @@ @echo off -title 远程连接音量自动调节器 -By:LeeQwQ +title ԶԶ -By:LeeQwQ mode con cols=65 lines=18 color 0B -chcp 65001 >nul +chcp 936 >nul cls echo ======================================== -echo 远程连接音量自动调节器 +echo ԶԶ echo Remote Volume Monitor echo ======================================== echo. -REM 检查 Python +REM Python python --version >nul 2>&1 if errorlevel 1 ( - echo [错误] 未找到 Python,请先安装 Python 3.8+ + echo [] δҵ PythonȰװ Python 3.8+ pause exit /b 1 ) echo. -echo [启动] 开始监控远程连接... -echo [提示] 按 Ctrl+C 停止监控 +echo [] ʼԶ... +echo [ʾ] Ctrl+C ֹͣ echo. -REM 启动监控程序(从 scripts 目录调用 src 和 config) +REM س򣨴 scripts Ŀ¼ src config python "%~dp0..\src\remote_volume_monitor.py" --config "%~dp0..\config\config.ini" pause