050_Windows下定时删除日志文件


定时删除脚本

rem auther:zhyq
rem date:20220930
rem ******del log Start******
@echo off

::删除三月前的日志
forfiles /p "C:\powerShovel\api\logs" /m *.log -d -90 /c "cmd /c del /f @path"

@echo on
rem ******del log End******


计划任务定时执行

image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png

posted @ 2024-03-20 09:47  清风(学习-踏实)  阅读(9)  评论(0编辑  收藏  举报