怎么不用第三方软件来清理windows系统垃圾

2026-03-09 17:20:53

1、第一步先在桌面建立一个空白文档

怎么不用第三方软件来清理windows系统垃圾

2、在文档里复制我们的代码

@echo off

echo 正在清除系统垃圾文件,请稍等......

del /f /s /q %systemdrive%*.tmp

del /f /s /q %systemdrive%*._mp

del /f /s /q %systemdrive%*.gid

del /f /s /q %systemdrive%*.chk

del /f /s /q %systemdrive%*.old

del /f /s /q %windir%*.bak

del /f /s /q %windir%emp*.*

del /f /a /q %systemdrive%*.sqm

del /f /s /q %windir%SoftwareDistributionDownload*.*

del /f /s /q "%userprofile%cookies*.*"

del /f /s /q "%userprofile%ecent*.*"

del /f /s /q "%userprofile%local settingsemporary internet files*.*"

del /f /s /q "%userprofile%local settingsemp*.*"

echo 清除系统垃圾文件完成!

echo. & pause

怎么不用第三方软件来清理windows系统垃圾

3、然后选择文件  另存为

怎么不用第三方软件来清理windows系统垃圾

4、把文件名改为 清理系统垃圾.bat   存储位置选择桌面

怎么不用第三方软件来清理windows系统垃圾

5、桌面就会出现我们制作好的程序,点击运行就会开始自动清理垃圾了。

怎么不用第三方软件来清理windows系统垃圾

猜你喜欢