一、打開記事本在記事本裡面輸入下面代碼,然後保存,保存成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 SettingsTemporary Internet Files”
cls & echo 系統垃圾清除完成:)
echo. & pause