我的电脑运行速度越来越慢,不知道是不是因为垃圾太多,想知道怎么清除,谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/23 15:39:16
谢谢大家,我电脑没中病毒

@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

将以上内容复制到记事本中,保存为“清理垃圾.bat”,记住,一定要是bat文件,图标是黑色的,定期运行就可以了!

此方法本人长期使用,比优化大师更间接,速度快,推荐!

磁盘碎片整理

优化大师好.不