首页  ·  知识 ·  基础设施
清除临时文件的Bat程序
网友  http://qq-713.blog.163.com/  数据中心  编辑:德仔   图片来源:网络
@echo off ech

@echo off          
echo   正在查找系统临时文件.请稍后.......:)
title   专用垃圾处理器 Version 2.0
color  0A
title  正在处理临时文件         
del /f /s /q %systemdrive%\*.tmp          
del /f /s /q %systemdrive%\*._mp
title  临时文件清楚完毕

title  正在清除日志文件          
del /f /s /q %systemdrive%\*.log
title  临时文件清楚完毕

title  正在清除日志文件              
del /f /s /q %systemdrive%\*.gid
title  临时文件清楚完毕

title  正在清除CHK文件              
del /f /s /q %systemdrive%\*.chk
title  CHK文件清除完毕

color 0B

title  正在清除日志文件              
del /f /s /q %systemdrive%\*.old
title  日志文件清楚完毕

title  正在清除回收站垃圾文件             
del /f /s /q %systemdrive%\recycled\*.*
title  回收站垃圾文件清楚完毕

title  正在清除备份文件             
del /f /s /q %windir%\*.bak 
title  备份文件清楚完毕

title  正在清楚日志文件            
del /f /s /q %windir%\prefetch\*.* 
title  临时文件清楚完毕

color  0C

title  正在清除日志文件            
rd  /s /q %windir%\temp & md %windir%\temp
title  临时文件清楚完毕

title  正在清除cookies文件             
del /f /q %userprofile%\cookies\*.* 
title  cookies文件清楚完毕

title  正在清除日志文件            
del /f /q %userprofile%\recent\*.*
title  临时文件清楚完毕

title  正在清除IE垃圾文件              
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 
title  IE垃圾文件 清楚完毕

title  正在清除 临时文件夹的 垃圾文件            
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
title  临时文件夹的 垃圾文件清楚完毕

title  最近打开的文档清除完毕             
del /f /s /q "%userprofile%\recent\*.*"
title  最近打开的文档清除完毕          
echo 清除系统临时文件完成! :)
exit
echo. & pause     

本文作者:网友 来源:网络http://qq-713.blog.163.com/
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读
也许感兴趣的
我们推荐的
主题最新
看看其它的