教程集 www.jiaochengji.com
教程集 >  脚本编程  >  批处理/bat  >  正文 一个清理系统缓存的bat脚本

一个清理系统缓存的bat脚本

发布时间:2014-08-30   编辑:jiaochengji.com
一个清理系统缓存的bat脚本

一个清理系统缓存的bat脚本,供大家学习参考。
将以下内容保存为clear_cache.bat,双击运行即可。
 

复制代码 代码如下:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause

您可能感兴趣的文章:
一个清理系统缓存的bat脚本
批处理安装系统补丁
批处理中Copy与Xcopy的区别有哪些
360极速浏览器缓存在哪清空?
mysql加速查询速度利器之查询缓存
清空DNS缓存的方法
php的flush和ob_flush无效问题解决办法
django如何使用session
学习mysql的查询缓存
Windows开机自启动bat脚本设置方法

[关闭]
~ ~