一、打开记事本在记事本里面输入下面代码,然后保存,保存成xxx.bat的格式,保存类型选择所有文件。接着找到并双击该文件即可开始清除注册表垃圾。如下图所示:

  @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

简单方法教你清除电脑注册表垃圾 三联