6300如何清理系统垃圾不是删除系统文件

来源:百度知道 编辑:UC知道 时间:2024/05/12 12:05:06
我知道新建.txt文件,并通过改扩展名来清除系统文件的方法,但我想知道如何清除换过主题后所产生的系统垃圾文件的方法,否则文件只会越删越少,垃圾越来越多,治标不治本,到头来还是没有内存。谢谢!

治本,格机

@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 清除系统垃圾完成!联系Jackie Geng:jackiegeng@qq.com……感谢您的使用!!
echo. & pause