多站点定期清除iis日志
作者:佚名 时间:2012-09-20
建立一个批处理文件iislog.bat,内容就一句:
forfiles /p E:\web /s /m *.log /d -7 /c "cmd /c del @file"
然后把批处理加入到计划任务里让它定期执行就可以了。
如没特殊注明,文章均为上海联楷网络原创,转载请注明来自:http://www.linksj.com/contact/20151229/n7460.html
建立一个批处理文件iislog.bat,内容就一句:
forfiles /p E:\web /s /m *.log /d -7 /c "cmd /c del @file"
然后把批处理加入到计划任务里让它定期执行就可以了。