内容显示页
 
类别:网络相关 | 浏览(546) | 2007-6-14 23:14:58 | 关闭广告

<job id="IIS日志清理,FTP日志清理">
<script language="vbscript">
'作者:柳永法(yongfa365)'Blog
'首发:007-6-14
'首发地址:http://www.yongfa365.com/item/IIS-Log-And-Serv-U-Log-Clear-yongfa365.html
'最后修改:2007-7-18

    now-60
    t=right(year(d),2) & right("0" & month(d),2)  & right("0" & day(d),2)  & ".log"
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run ("cmd.exe /c del /s d:\web\log\" & "ex" &  t)
    WshShell.Run ("cmd.exe /c del /s d:\FtpLog\" & "ftp" &  t)
    Set WshShell = NOthing
</script>
</job>

将以上文件存为iisclear.wsf,加到计划任务里.天天让它运行就可以了


引用本页地址:http://www.yongfa365.com/item/IIS-Log-And-Serv-U-Log-Clear-yongfa365.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片看不清? 换张图试试
 
   
 
 
文章分类
 
   

Power by :柳永法(yongfa365)'Blog | Model by :hibaidu | CSS by:众网友 | 京ICP备07011491号  QQ:64049027  E-mail:64049027qq.com

本空间赞助商:北京中科兴联信息技术有限公司