電腦慢如何徹底清理電腦系統(tǒng)垃圾
電腦慢想要徹底清理電腦系統(tǒng)垃圾,該怎么辦呢,那么電腦慢如何徹底清理電腦系統(tǒng)垃圾的呢?下面是學(xué)習(xí)啦小編收集整理的電腦慢如何徹底清理電腦系統(tǒng)垃圾,希望對(duì)大家有幫助~~
電腦慢徹底清理電腦系統(tǒng)垃圾的方法
工具/原料
Microsoft Windows OS
360安全衛(wèi)士
方法一 手動(dòng)刪除
1打開(kāi)“我的電腦”,進(jìn)入以下目錄,這些目錄下的文件全部可刪:
C:\WINDOWS\system32\dllcache
C:\WINDOWS\Prefetch\
C:\WINDOWS\Temp\
C:\WINDOWS\下所有的補(bǔ)丁文件(隱藏文件)和日志文件(后綴為.log):
2再打開(kāi)本地個(gè)人帳號(hào)目錄,路徑是C:\Documents and Settings\Administrator\Local Settings\Application Data,這些目錄下的垃圾文件也可全部刪除:如Cookies、Temp、Temporary Internet Files、Recent目錄:
3徹底清理磁盤:點(diǎn)擊“開(kāi)始”菜單中的“運(yùn)行”,輸入“cleanmgr /sageset:99”命令,點(diǎn)擊“確定”后打開(kāi)“磁盤清理設(shè)置”對(duì)話框,勾選全部的選項(xiàng)::
4再運(yùn)行“cleanmgr /sagerun:99”命令執(zhí)行清理操作:
5點(diǎn)擊“確定”后開(kāi)始執(zhí)行清理工作,會(huì)依次彈出多個(gè)對(duì)話框:
6請(qǐng)耐心等待清理工作執(zhí)行完畢。
7此方法煩鎖且效率不高,不建議使用,建議使用方法二。
END
方法二 編寫批處理自動(dòng)清理
1點(diǎn)擊任務(wù)欄中的“開(kāi)始”按鈕,選擇“所有程序”,再選擇“附件”,再選擇彈出菜單中的“記事本”,打開(kāi)記事本程序:
2將以下內(nèi)容復(fù)制到記事本,另存為后綴為.bat的批處理文件:
3@ECHO off
color 0a
REM [2012.08.11]
REM 增加優(yōu)化自記功項(xiàng)功能
REM [2012.05.01]
REM 區(qū)分服務(wù)器和非服務(wù)器(已取消)
REM [2012.02.01]
REM 重點(diǎn)優(yōu)化了本地帳戶垃圾文件索引功能——減少了循環(huán)次數(shù)以減小系統(tǒng)資源占用
REM 修復(fù)細(xì)小Bug——修復(fù)個(gè)別因命令書(shū)寫失誤導(dǎo)致的功能失效問(wèn)題
REM [2012.01.31]
REM 優(yōu)化了清理順序——將需要重點(diǎn)清除和資源占用小的功能優(yōu)先執(zhí)行
REM [2012.01.30]
REM 優(yōu)化更為徹底——可全自動(dòng)刪除域環(huán)境下所有本地帳戶下的垃圾文件、自動(dòng)刪除系統(tǒng)更新遺留的補(bǔ)丁文件
REM 針對(duì)家庭使用,增加了系統(tǒng)優(yōu)化功能——自動(dòng)判斷是否需要優(yōu)化,減少資源占用
::echo 當(dāng)前帳戶:%username%
ECHO.
ECHO ==本程序用于服務(wù)器時(shí)具有相當(dāng)?shù)奈kU(xiǎn)性,請(qǐng)參照本程序源碼REM操作!==
REM 服務(wù)器操作時(shí)這部分操作請(qǐng)勿使用!否則本人概不負(fù)責(zé)!
echo 禁止java后臺(tái)更新程序自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f >nul 2>nul
echo 禁止Adobe Reader升級(jí)程序自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Adobe ARM" /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Adobe Reader Speed Launcher" /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Reader_sl /f >nul 2>nul
echo 禁止飛信自啟動(dòng)
reg delete HKEY_LOCAL_user\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Fetion /f >nul 2>nul
echo 禁止系統(tǒng)配置程序員自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v MSConfig /f >nul 2>nul
echo 禁止日語(yǔ)輸入法自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IMJPMIG8.1 /f >nul 2>nul
echo 禁止微軟多語(yǔ)言支持自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IMEKRMIG6.1 /f >nul 2>nul
echo 禁止微軟IME輸入法組件自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IMSCMig /f >nul 2>nul
echo 禁止同步自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Synchronization Manager" /f >nul 2>nul
echo 禁止微軟拼音輸入法2002自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v MSPY2002 /f >nul 2>nul
echo 禁止微軟拼音輸入法組件自啟動(dòng)
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v PHIME2002A /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v PHIME2002ASync /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Microsoft Pinyin IME Migration" /f >nul 2>nul
TITLE 清理.bak備份文件-謹(jǐn)慎操作!
del /f /s /q %windir%\*.bak
REM 用于服務(wù)器時(shí)請(qǐng)勿刪除日志!-謹(jǐn)慎操作!
TITLE 用于服務(wù)器時(shí)請(qǐng)勿刪除日志!-謹(jǐn)慎操作!
del /f /s /q %systemdrive%\*.log
REM 勿使用rd /s /q %windir%\temp & md %windir%\temp命令,否則服務(wù)器服務(wù)(如DB)容易出現(xiàn)問(wèn)題!
del /f/s /q %windir%\temp\*.*
REM 若要清理幫助文件,將下面的::刪除即可
rd /s /q "%windir%\help"
ECHO ::1.清理局域網(wǎng)共享痕跡--注冊(cè)表::
TITLE ::1.清理局域網(wǎng)共享痕跡--注冊(cè)表::
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares" /f >nul 2>nul
ECHO ::2.清理運(yùn)行或操作歷史記錄--注冊(cè)表::
TITLE ::2.清理運(yùn)行或操作歷史記錄--注冊(cè)表::
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.jpg" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ini" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\mp3" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\htm" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\ArcHistory" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f >nul 2>nul
reg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Microsoft Management Console\Recent File List" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Office.0\PowerPoint\Recent File List" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Office.0\Excel\Recent File" /va /f >nul 2>nul
reg delete "HKCU\Software\Microsoft\Office.0\Word\Data" /v "Settings" /f >nul 2>nul
reg delete "HKCU\Software\VMware, Inc." /va /f >nul 2>nul
ECHO ::3.清理IE瀏覽歷史的下拉列表--注冊(cè)表::
TITLE ::3.清理IE瀏覽歷史的下拉列表--注冊(cè)表::
reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedUrls" /va /f >nul 2>nul
ECHO ::4.正在清理常見(jiàn)系統(tǒng)垃圾文件,請(qǐng)退出360等程序::
TITLE ::4.正在清理常見(jiàn)系統(tǒng)垃圾文件,請(qǐng)退出360等程序::
del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nul
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\thumbs.db
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\system32\dllcache\*.*
del /f /s /q %windir%\prefetch\*.*
cls
ECHO ::5.為安全起見(jiàn),以下清理操作只對(duì)當(dāng)前登錄帳戶有效::
TITLE ::5.為安全起見(jiàn),以下清理操作只對(duì)當(dāng)前登錄帳戶有效::
del /f /s /q "%tmp%\*.*"
ECHO ::6.清理文件緩存::
TITLE ::6.清理文件緩存::
SFC /purgecache
cls
ECHO ::7.清理系統(tǒng)升級(jí)補(bǔ)丁目錄::
TITLE ::7.清理系統(tǒng)升級(jí)補(bǔ)丁目錄::
dir %SystemRoot%$*$ /ad/b >%SystemRoot%\DirTmp.txt
for /f %%a in (%SystemRoot%\DirTmp.txt) do rd /s /q "%SystemRoot%\%%a"
del /f /q %SystemRoot%\DirTmp.txt
cls
ECHO ::8.清理磁盤錯(cuò)誤檢測(cè)文件::
TITLE ::8.清理磁盤錯(cuò)誤檢測(cè)文件::
dir %SystemDrive%\found.??? /ad/b >%systemDrive%\DirTmp.txt
for /f %%a in (%systemDrive%\DirTmp.txt) do rd /s /q "%systemDrive%\%%a"
del /f /q %systemDrive%\DirTmp.txt
cls
ECHO ::9.正在清理所有(域)帳戶下的所有臨時(shí)文件,請(qǐng)稍候::
TITLE ::9.正在清理所有(域)帳戶下的所有臨時(shí)文件,請(qǐng)稍候::
dir "%SystemDrive%\Documents and Settings\" /ad/b >%SystemDrive%\DirTmp.txt
for /f %%a in (%SystemDrive%\DirTmp.txt) do del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Cookies\*.*"&del /f /s /q "%SystemDrive%\Documents and
Settings\%%a\Recent\*.*"&rd /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\History\"&del /f /s /q "%SystemDrive%\Documents and Settings\%%
a\Local Settings\Temp\*.*"&del /f /s /q "%SystemDrive%\Documents and Settings\%%a\Local Settings\Temporary Internet Files\*.*"
del /f /q %SystemDrive%\DirTmp.txt
cls
ECHO ::10.刪除系統(tǒng)驅(qū)動(dòng)備份文件,釋放空間::
TITLE ::10.刪除系統(tǒng)驅(qū)動(dòng)備份文件,釋放空間::
rd /s /q %SystemDrive%\swsetup\
ECHO ::11.正在進(jìn)行系統(tǒng)優(yōu)化::
TITLE ::11.正在進(jìn)行系統(tǒng)優(yōu)化::
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v TkBellExe /f
cls
ECHO ::12.正在進(jìn)行最后一步——磁盤清理,完成后自動(dòng)退出::
ECHO 當(dāng)耗時(shí)越長(zhǎng)時(shí),說(shuō)明你系統(tǒng)垃圾越多,請(qǐng)耐心等待程序執(zhí)行完畢。。。
TITLE ::12.正在進(jìn)行最后一步——磁盤清理,完成后自動(dòng)退出::
cleanmgr /sagerun:99
exit
4
5設(shè)置磁盤清理選項(xiàng):點(diǎn)擊“開(kāi)始”菜單中的“運(yùn)行”,輸入“cleanmgr /sageset:99”命令,點(diǎn)擊“確定”后打開(kāi)“磁盤清理設(shè)置”對(duì)話框,參照方法一中圖片。
6再執(zhí)行保存的.bat程序,開(kāi)始自動(dòng)清理:
7因?yàn)槌绦蛑幸徊⑶謇砹俗?cè)表中的垃圾文件(Reg語(yǔ)句),所以執(zhí)行此程序時(shí)建議關(guān)閉360,或者彈出360提示時(shí)選擇允許操作即可。
8以后在需要時(shí)雙擊執(zhí)行此程序即可。
END
方法三 利用360清理垃圾功能自動(dòng)清理
打開(kāi)360安全衛(wèi)士,切換到“電腦清理”功能塊,選擇“一鍵清理”欄;
點(diǎn)擊“右邊”的“自動(dòng)清理”按鈕,勾選下面的三個(gè)復(fù)選框,同時(shí)建議在下面清理頻率中選擇為“每周”:
切換到“清理垃圾”欄,先點(diǎn)擊右下角的“設(shè)置”按鈕,在彈出的“清理垃圾設(shè)置”窗口上單擊下面的“全選”,單擊“確定”:
退出“清理垃圾設(shè)置”窗口后單擊“開(kāi)始掃描”按鈕即可。
再切換到“清理痕跡”欄,單擊“高級(jí)設(shè)置”按鈕,在彈出的“高級(jí)設(shè)置”窗口中選擇“全選”,單擊“確定”,退出“高級(jí)設(shè)置”窗口后單擊“開(kāi)始掃描”按鈕開(kāi)始掃描垃圾:
建議不要“全選”,只選擇你有安裝過(guò)的軟件即可。
6掃描完成后執(zhí)行“立即清理”工作。
電腦慢如何徹底清理電腦系統(tǒng)垃圾相關(guān)文章: