随码网随码网

一键清理系统垃圾bat操作指南:让你的电脑运行更流畅

一键清理系统垃圾bat操作指南:让你的电脑运行更流畅

一键清理系统垃圾bat操作指南

随着电脑使用时间的增长,我们经常会遇到电脑运行缓慢,存储空间不足的问题。这时,清理系统垃圾文件就显得尤为重要。下面,我们就来学习如何使用一键清理系统垃圾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”,保存在桌面。接下来,双击运行该批处理文件,系统就会开始自动清理垃圾文件。

在清理过程中,根据提示,点击窗口,点击键盘任意键结束,即可完成清理。清理完成后,你的电脑将会恢复到更快的运行速度。

特别提示:在操作过程中,要确保记事本中的代码正确无误,并且记得将记事本重命名为“一键系统垃圾清理.bat”。

未经允许不得转载:免责声明:本文由用户上传,如有侵权请联系删除!

赞 ()

评论