19 lines
393 B
Batchfile
19 lines
393 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
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
|
|
) |