Initial commit - 按新规范整理目录结构
- Code/: 源代码、配置文件、文档、工具 - Releases/: 发布包(v1.0) - Test/: 测试用例和测试脚本
This commit is contained in:
39
Code/scripts/启动监控.bat
Normal file
39
Code/scripts/启动监控.bat
Normal file
@@ -0,0 +1,39 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo ========================================
|
||||
echo 远程连接音量自动调节器
|
||||
echo Remote Volume Monitor
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
REM 检查 Python
|
||||
python --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [错误] 未找到 Python,请先安装 Python 3.8+
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM 检查依赖
|
||||
echo [检查] 验证依赖库...
|
||||
python -c "import pycaw" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [安装] 正在安装依赖库...
|
||||
pip install pycaw comtypes wmi
|
||||
)
|
||||
|
||||
python -c "import wmi" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [安装] 正在安装 WMI 库...
|
||||
pip install wmi
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [启动] 开始监控远程连接...
|
||||
echo [提示] 按 Ctrl+C 停止监控
|
||||
echo.
|
||||
|
||||
REM 启动监控程序(从 scripts 目录调用 src 和 config)
|
||||
python "%~dp0..\src\remote_volume_monitor.py" --config "%~dp0..\config\config.ini"
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user