这样清理系统垃圾彻底么?

来源:百度知道 编辑:UC知道 时间:2024/05/26 04:29:01
@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
<

这样只能清除系统文件夹中的垃圾文件,如果用户自己建立的文件产生的备份文件就无法删除,如用WPS软件时自动备份的BAK文件,建议还是用超级兔子魔法设置来进行垃圾文件清理,并且此软件还可以清除掉注册表中的垃圾信息。