v1.1.2 修复:启动脚本使用 ANSI (GBK) 编码

修复问题:
- Windows CMD 默认使用 ANSI 编码(GBK)
- UTF-8 编码的 bat 文件在中文 Windows 上会显示乱码

修改内容:
- 启动监控.bat 转换为 GBK 编码
- 使用 chcp 936 设置代码页为简体中文
This commit is contained in:
2026-03-20 18:04:32 +08:00
parent e3b36d958d
commit e1333ccb78

View File

@@ -1,29 +1,29 @@
@echo off @echo off
title 远程连接音量自动调节器 -By:LeeQwQ title 远程连接音量自动调节器 -By:LeeQwQ
mode con cols=65 lines=18 mode con cols=65 lines=18
color 0B color 0B
chcp 65001 >nul chcp 936 >nul
cls cls
echo ======================================== echo ========================================
echo 远程连接音量自动调节器 echo 远程连接音量自动调节器
echo Remote Volume Monitor echo Remote Volume Monitor
echo ======================================== echo ========================================
echo. echo.
REM 检查 Python REM 检查 Python
python --version >nul 2>&1 python --version >nul 2>&1
if errorlevel 1 ( if errorlevel 1 (
echo [错误] 未找到 Python请先安装 Python 3.8+ echo [错误] 未找到 Python请先安装 Python 3.8+
pause pause
exit /b 1 exit /b 1
) )
echo. echo.
echo [启动] 开始监控远程连接... echo [启动] 开始监控远程连接...
echo [提示] 按 Ctrl+C 停止监控 echo [提示] 按 Ctrl+C 停止监控
echo. echo.
REM 启动监控程序(从 scripts 目录调用 src 和 config REM 启动监控程序(从 scripts 目录调用 src 和 config
python "%~dp0..\src\remote_volume_monitor.py" --config "%~dp0..\config\config.ini" python "%~dp0..\src\remote_volume_monitor.py" --config "%~dp0..\config\config.ini"
pause pause