用一键清除系统垃圾感觉不好,谁能教我具体怎么清除系统垃圾

来源:百度知道 编辑:UC知道 时间:2024/05/17 14:14:33
请详细点

为什么不好呢?
以下是一键清除垃圾的脚本,如果觉得哪一条不好,把它屏蔽不执行就是了。

@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 清除系统垃圾完成!
echo. & pause

另外,还可以考虑用卡卡上网助手来清垃圾,

用360来清除,然后重启就好了。