This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-01-15 18:19:09 +08:00

35 lines
644 B
Batchfile

@echo off
chcp 65001 >nul
setlocal
REM 检查管理员权限
net session >nul 2>&1
if %errorlevel% neq 0 (
echo 请以管理员身份运行此脚本
pause
exit /b 1
)
REM 查找Python解释器
where python >nul 2>&1
if %errorlevel% neq 0 (
echo 未找到Python解释器,请确保Python已安装并添加到系统PATH
pause
exit /b 1
)
REM 设置脚本路径
set SCRIPT_DIR=%~dp0
REM 执行日志清理
echo 正在清理日志文件...
"%SCRIPT_DIR%clean_logs.py"
REM 处理执行结果
if %errorlevel% equ 0 (
echo 日志清理完成
) else (
echo 日志清理失败,错误代码:%errorlevel%
)
pause