苹果手游蜀山战纪官网:快速减肥你的电脑

来源:百度文库 编辑:九乡新闻网 时间:2024/04/28 23:49:41

电脑用过一段时间后,C盘空间就会无缘无故地缩小,究其原因,大多是系统产生的垃圾造成的。找到了一个清除系统垃圾的方法,大家可试用一下。

 

@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”,每次清理系统垃圾时双击那个文件就OK了。