v1.1.2 修复:启动脚本使用 ANSI (GBK) 编码
修复问题: - Windows CMD 默认使用 ANSI 编码(GBK) - UTF-8 编码的 bat 文件在中文 Windows 上会显示乱码 修改内容: - 启动监控.bat 转换为 GBK 编码 - 使用 chcp 936 设置代码页为简体中文
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user