win7系统创建bat清理注册表垃圾的方法|如何清理win7系统注册表垃圾
发布时间:2017-11-30 10:27:44 浏览数: 小编:kunyi
大家操作win7系统一段时间后,系统就会产生一些垃圾,不仅没有任何用处还占用我们电脑的内存。注册表中也会产生这样的垃圾,那么,怎么把这么垃圾清理掉,让我们的系统运行更加顺畅呢?小编推荐给大家创建bat来快速把系统垃圾扫除。具体是这样操作的:
相关阅读:怎么操作才能清理掉win7系统里的木马文件
一、新建记事本,复制以下代码到记事本。
@echo off
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 %windir%\*.bak
del/f/q %systemdrive%\recycled\*.*
del/f/q %windir%\prefetch\*.*
rd/s/q %windir%\temp & md %windir%\tempemp% &md %temp%
del/f/q %userprofile%\cookies\*.*
del/f/q %userprofile%\recent\*.*
rd/s/q \“%userprofile%\Local Settings\Temporary Internet Files\”
cls & echo 系统垃圾清除完成:)
echo. & pause
二、保存为“xxx.bat”的格式,保存类型选定位所有文件。
三、双击运行这个创建的文件便可自动清除注册表垃圾了。
以上就是今天小编要分享给大家的内容,希望这篇教程能够对大家有所帮助。