清除电脑缓存的bat文件

电脑在使用了之后,会产生垃圾缓存,若不及时清理会降低电脑的运行速度。

1、步骤:

2、新建一个记事本文件,命名“系统清理”;(或其他名字)

3、原封不动复制下面的文字到该记事本中

@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 清除系统L完成!

echo. & pause

 

保存并关闭记事本,后修改记事本的后缀名.txt改为.bat,双击可运行;

posted @ 2019-04-01 21:10  icon_sunny  阅读(3682)  评论(0编辑  收藏  举报