卡饭网 > win7 > 正文

如何清理win7系统盘垃圾?

来源:本站整理 作者:梦在深巷 时间:2014-06-28 20:16:32

如何清理win7系统盘垃圾?其实我们知道,win7系统虽然华丽,但是很耗内存,所以win7系统的安装对于系统盘的空间要求比较高,导致很多电脑无法承载该系统,即便是有那么大的内存,安装了系统之后你也会发现c盘的空间所剩无几,系统盘太过紧凑是会导致电脑运行变卡的,下面小编就教大家一个清理win7系统盘垃圾的小方法吧!

这个方法很强悍,试过该方法的朋友最高记录帮系统盘释放了超过1G的空间,当然,并非每个电脑都能达到这样的效果,注意是看自己电脑系统盘的垃圾的多少而论了,下面说说操作方法!

首先,我们需要在桌面上空白处点击右键,然后新建一个记事本文件,接下来,将下面的一串代码复制到记事本中。

@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 SettingsTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

del /f /s /q "%userprofile%recent*.*"

echo 清除系统垃圾完成!

echo. & pause

在保存文件的时候咱们不要保存,而是选择另存为,然后将文件名更改为“清除系统LJ.bat”就可以了!

第三步就是在保存好之后咱们双击该文件,系统就会自动的开始清理系统盘中的垃圾了,直到提示清楚系统垃圾完成就OK了!

相关推荐