This commit is contained in:
2025-01-15 18:08:03 +08:00
parent 6edb6c48e7
commit 95e02b3e16
+5 -17
View File
@@ -1,18 +1,6 @@
@echo off
REM 自动查找Python解释器
where python >nul 2>&1
if %errorlevel% neq 0 (
echo 未找到Python解释器,请确保Python已安装并添加到系统PATH
pause
exit /b 1
)
REM 执行日志清理脚本
python "%~dp0clean_logs.py"
REM 如果执行成功则暂停显示结果
if %errorlevel% equ 0 (
echo.
echo 日志清理完成!
pause
)
chcp 65001 >nul
echo 日志清理完成
pause
python clean_logs.py
pause