係統粉 > 係統教程 > 電腦軟件教程

電腦慢如何徹底清理電腦係統垃圾 電腦慢徹底清理電腦係統垃圾的方法

發布時間:2017-07-04 14:47:47    瀏覽數:

今天給大家帶來電腦慢如何徹底清理電腦係統垃圾,電腦慢徹底清理電腦係統垃圾的方法,讓您輕鬆解決問題。

強悍的方法,讓你電腦飛速運行!若參考本教程操作後無效果請反饋!

具體方法如下:

解決方法1:

1

打開“我的電腦”,進入以下目錄,這些目錄下的文件全部可刪:

C:WINDOWSsystem32dllcache

C:WINDOWSPrefetch

C:WINDOWSTemp

C:WINDOWS下所有的補丁文件(隱藏文件)和日誌文件(後綴為.log):

2

再打開本地個人帳號目錄,路徑是C:Documents and SettingsAdministratorLocal SettingsApplication Data,這些目錄下的垃圾文件也可全部刪除:如Cookies、Temp、Temporary Internet Files、Recent目錄:

3

徹底清理磁盤:點擊“開始”菜單中的“運行”,輸入“cleanmgr /sageset:99”命令,點擊“確定”後打開“磁盤清理設置”對話框,勾選全部的選項::

4

再運行“cleanmgr /sagerun:99”命令執行清理操作:

5

點擊“確定”後開始執行清理工作,會依次彈出多個對話框:

6

請耐心等待清理工作執行完畢。

7

此方法煩鎖且效率不高,不建議使用,建議使用方法二。

解決方法2:

1

點擊任務欄中的“開始”按鈕,選擇“所有程序”,再選擇“附件”,再選擇彈出菜單中的“記事本”,打開記事本程序:

2

將以下內容複製到記事本,另存為後綴為.bat的批處理文件:

3

@ECHO off
color 0a
REM [2012.08.11]
REM 增加優化自記功項功能
REM [2012.05.01]
REM 區分服務器和非服務器(已取消)
REM [2012.02.01]
REM 重點優化了本地帳戶垃圾文件索引功能——減少了循環次數以減小係統資源占用
REM 修複細小Bug——修複個別因命令書寫失誤導致的功能失效問題
REM [2012.01.31]
REM 優化了清理順序——將需要重點清除和資源占用小的功能優先執行
REM [2012.01.30]
REM 優化更為徹底——可全自動刪除域環境下所有本地帳戶下的垃圾文件、自動刪除係統更新遺留的補丁文件
REM 針對家庭使用,增加了係統優化功能——自動判斷是否需要優化,減少資源占用
::echo 當前帳戶:%username%
ECHO.














ECHO ==本程序用於服務器時具有相當的危險性,請參照本程序源碼REM操作!==
REM 服務器操作時這部分操作請勿使用!否則本人概不負責!
echo 禁止java後台更新程序自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v SunJavaUpdateSched /f >nul 2>nul


echo 禁止Adobe Reader升級程序自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v "Adobe ARM" /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v "Adobe Reader Speed Launcher" /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v Reader_sl /f >nul 2>nul


echo 禁止飛信自啟動
reg delete HKEY_LOCAL_userSOFTWAREMicrosoftWindowsCurrentVersionRun /v Fetion /f >nul 2>nul

echo 禁止係統配置程序員自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v MSConfig /f >nul 2>nul

echo 禁止日語輸入法自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMJPMIG8.1 /f >nul 2>nul

echo 禁止微軟多語言支持自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMEKRMIG6.1 /f >nul 2>nul

echo 禁止微軟IME輸入法組件自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v IMSCMig /f >nul 2>nul

echo 禁止同步自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v "Synchronization Manager" /f >nul 2>nul

echo 禁止微軟拚音輸入法2002自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v MSPY2002 /f >nul 2>nul

echo 禁止微軟拚音輸入法組件自啟動
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v PHIME2002A /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v PHIME2002ASync /f >nul 2>nul
reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun /v "Microsoft Pinyin IME Migration" /f >nul 2>nul



TITLE 清理.bak備份文件-謹慎操作!
del /f /s /q %windir%*.bak
REM 用於服務器時請勿刪除日誌!-謹慎操作!
TITLE 用於服務器時請勿刪除日誌!-謹慎操作!
del /f /s /q %systemdrive%*.log
REM 勿使用rd /s /q %windir% emp & md %windir% emp命令,否則服務器服務(如DB)容易出現問題!
del /f/s /q %windir% emp*.*
REM 若要清理幫助文件,將下麵的::刪除即可
rd /s /q "%windir%help"








ECHO ::1.清理局域網共享痕跡--注冊表::
TITLE ::1.清理局域網共享痕跡--注冊表::
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerWorkgroupCrawlerShares" /f >nul 2>nul
ECHO ::2.清理運行或操作曆史記錄--注冊表::
TITLE ::2.清理運行或操作曆史記錄--注冊表::
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocsFolder" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.txt" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rar" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.mp3" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.jpg" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.ini" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.bmp" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.doc" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.eip" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.htm" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.ico" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.inf" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.gif" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.wav" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.xls" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rm" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedMRU" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU*" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUmp3" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU m" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUwav" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUat" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUexe" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUeip" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUico" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUhtm" /va /f >nul 2>nul 
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUjpg" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerStreamMRU" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist{5E6AB780-7743-11CF-A12B-00AA004AE837}Count" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist{75048700-EF1F-11D0-9888-006097DEACF9}Count" /va /f >nul 2>nul
reg delete "HKCUSoftwareWinRARArcHistory" /va /f >nul 2>nul
reg delete "HKCUSoftwareWinRARDialogEditHistoryArcName" /va /f >nul 2>nul
reg delete "HKCUSoftwareWinRARDialogEditHistoryExtrPath" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftMediaPlayerPlayerRecentFileList" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftMicrosoft Management ConsoleRecent File List" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftOffice11.0PowerPointRecent File List" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftOffice11.0ExcelRecent File" /va /f >nul 2>nul
reg delete "HKCUSoftwareMicrosoftOffice11.0WordData" /v "Settings" /f >nul 2>nul
reg delete "HKCUSoftwareVMware, Inc." /va /f >nul 2>nul












































ECHO ::3.清理IE瀏覽曆史的下拉列表--注冊表::
TITLE ::3.清理IE瀏覽曆史的下拉列表--注冊表::
reg delete "HKCUSoftwareMicrosoftInternet ExplorerTypedUrls" /va /f >nul 2>nul

ECHO ::4.正在清理常見係統垃圾文件,請退出360等程序::
TITLE ::4.正在清理常見係統垃圾文件,請退出360等程序::
del /f /q "%ALLUSERSPROFILE%DocumentsDrWatson*.*">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% humbs.db
del /f /s /q %systemdrive% ecycled*.*
del /f /s /q %windir%system32dllcache*.*
del /f /s /q %windir%prefetch*.*










cls
ECHO ::5.為安全起見,以下清理操作隻對當前登錄帳戶有效::
TITLE ::5.為安全起見,以下清理操作隻對當前登錄帳戶有效::
del /f /s /q "%tmp%*.*"


ECHO ::6.清理文件緩存::
TITLE ::6.清理文件緩存::
SFC /purgecache
cls
ECHO ::7.清理係統升級補丁目錄::
TITLE ::7.清理係統升級補丁目錄::
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.清理磁盤錯誤檢測文件::
TITLE ::8.清理磁盤錯誤檢測文件::
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.正在清理所有(域)帳戶下的所有臨時文件,請稍候::
TITLE ::9.正在清理所有(域)帳戶下的所有臨時文件,請稍候::
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\%%aCookies*.*"&del /f /s /q "%SystemDrive%Documents and


Settings\%%aRecent*.*"&rd /s /q "%SystemDrive%Documents and Settings\%%aLocal SettingsHistory"&del /f /s /q "%SystemDrive%Documents and Settings\%%

aLocal SettingsTemp*.*"&del /f /s /q "%SystemDrive%Documents and Settings\%%aLocal SettingsTemporary Internet Files*.*"
del /f /q %SystemDrive%DirTmp.txt
cls
ECHO ::10.刪除係統驅動備份文件,釋放空間::
TITLE ::10.刪除係統驅動備份文件,釋放空間::
rd /s /q %SystemDrive%swsetup
ECHO ::11.正在進行係統優化::
TITLE ::11.正在進行係統優化::
reg delete "HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun" /v TkBellExe /f
cls
ECHO ::12.正在進行最後一步——磁盤清理,完成後自動退出::
ECHO   當耗時越長時,說明你係統垃圾越多,請耐心等待程序執行完畢。。。
TITLE ::12.正在進行最後一步——磁盤清理,完成後自動退出::
cleanmgr /sagerun:99
exit














 

4

5

設置磁盤清理選項:點擊“開始”菜單中的“運行”,輸入“cleanmgr /sageset:99”命令,點擊“確定”後打開“磁盤清理設置”對話框,參照方法一中圖片。

6

再執行保存的.bat程序,開始自動清理:

7

因為程序中一並清理了注冊表中的垃圾文件(Reg語句),所以執行此程序時建議關閉360,或者彈出360提示時選擇允許操作即可。

8

以後在需要時雙擊執行此程序即可。

解決方法3:

1

打開360安全衛士,切換到“電腦清理”功能塊,選擇“一鍵清理”欄;

2

點擊“右邊”的“自動清理”按鈕,勾選下麵的三個複選框,同時建議在下麵清理頻率中選擇為“每周”:

3

切換到“清理垃圾”欄,先點擊右下角的“設置”按鈕,在彈出的“清理垃圾設置”窗口上單擊下麵的“全選”,單擊“確定”:

4

退出“清理垃圾設置”窗口後單擊“開始掃描”按鈕即可。

5

再切換到“清理痕跡”欄,單擊“高級設置”按鈕,在彈出的“高級設置”窗口中選擇“全選”,單擊“確定”,退出“高級設置”窗口後單擊“開始掃描”按鈕開始掃描垃圾:

建議不要“全選”,隻選擇你有安裝過的軟件即可。

6

掃描完成後執行“立即清理”工作。

以上就是電腦慢如何徹底清理電腦係統垃圾,電腦慢徹底清理電腦係統垃圾的方法教程,希望本文中能幫您解決問題。

上一篇:如何在將網頁上的內容快速保存到印象筆記 在將網頁上的內容快速保存到印象筆記的方法 下一篇:電腦慢卡的要死,是怎麼解決,要怎麼處理? 電腦慢卡的要死,要如何解決?

電腦軟件相關教程