xp電腦如何清理系統(tǒng)垃圾文件
xp電腦如何清理系統(tǒng)垃圾文件
xp電腦怎么徹底清除系統(tǒng)垃圾文件呢?下面由學(xué)習(xí)啦小編為你整理了xp電腦如何清理系統(tǒng)垃圾文件的相關(guān)方法,希望對(duì)你有幫助!
xp電腦清理系統(tǒng)垃圾文件解決方法1
使用bat命令
開(kāi)始——程序——附件——記事本,打開(kāi)電腦記事本。
2@echo off
color 3b
title 清除XP系統(tǒng)垃圾工具
echo 正在清除系統(tǒng)垃圾文件,請(qǐng)稍等......
rem 提示部份軟件卸載需LOG 文件,清理掉后就無(wú)法卸載
if exist "%windir%\*.log" del /f /s /q "%windir%\*.log" 2>nul
if exist "%systemdrive%\*.log" del /f /s /q "%systemdrive%\*.log" 2>nul
if exist "%systemdrive%\*.tmp" del /f /s /q "%systemdrive%\*.tmp" 2>nul
if exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nul
if exist "%systemdrive%\*.gid" del /f /s /q "%systemdrive%\*.gid" 2>nul
if exist "%systemdrive%\*.chk" del /f /s /q "%systemdrive%\*.chk" 2>nul
if exist "%systemdrive%\*.old" del /f /s /q "%systemdrive%\*.old" 2>nul
if exist "%systemdrive%\*.ftg" del /f /s /q "%systemdrive%\*.ftg" 2>nul
if exist "%systemdrive%\*.fts" del /f /s /q "%systemdrive%\*.fts" 2>nul
if exist "%systemdrive%\*._mp" del /f /s /q "%systemdrive%\*._mp" 2>nul
if exist "%systemdrive%\*.syd" del /f /s /q "%systemdrive%\*.syd" 2>nul
if exist "%systemdrive%\*.ms" del /f /s /q "%systemdrive%\*.ms" 2>nul
if exist "%systemdrive%\*.diz" del /f /s /q "%systemdrive%\*.diz" 2>nul
if exist "%systemdrive%\*.??$" del /f /s /q "%systemdrive%\*.??$" 2>nul
if exist "%systemdrive%\*.??~" del /f /s /q "%systemdrive%\*.??~" 2>nul
if exist "%systemdrive%\*.$$$" del /f /s /q "%systemdrive%\*.$$$" 2>nul
if exist "%systemdrive%\*.~*" del /f /s /q "%systemdrive%\*.~*" 2>nul
if exist "%systemdrive%\*.@@@" del /f /s /q "%systemdrive%\*.@@@" 2>nul
if exist "%systemdrive%\recycled\*.*" del /f /s /q %systemdrive%\recycled\*.* 2>nul
if exist "%windir%\*.bak" del /f /s /q %windir%\*.bak 2>nul
if exist "%windir%\*.tmp" del /f /s /q %windir%\*.tmp 2>nul
if exist "%windir%\SoftwareDistribution\Download\*.*" del /f /s /q %windir%\SoftwareDistribution\Download\*.* 2>nul
if exist "%systemroot%\temp\*.*" del /a /f /s /q "%systemroot%\temp\*.*" 2>nul
if exist "%systemroot%\Prefetch\*.*" del /a /f /s /q "%systemroot%\Prefetch\*.*" 2>nul
if exist "%systemroot%\minidump\*.*" del /f /q /s /a "%systemroot%\minidump\*.*" 2>nul
if exist "%systemroot%\*.dmp" del /a /f /s /q "%systemroot%\*.dmp" 2>nul
if exist "%systemroot%\*.tmp" del /a /f /s /q "%systemroot%\*.tmp" 2>nul
if exist "%systemroot%\*._mp" del /a /f /s /q "%systemroot%\*._mp" 2>nul
if exist "%systemroot%\*.gid" del /a /f /s /q "%systemroot%\*.gid" 2>nul
if exist "%systemroot%\*.bak" del /a /f /s /q "%systemroot%\*.bak" 2>nul
if exist "%systemroot%\*.old" del /a /f /s /q "%systemroot%\*.old" 2>nul
if exist "%systemroot%\*.query" del /a /f /s /q "%systemroot%\*.query" 2>nul
rd /s /q %windir%\temp & md %windir%\temp
if exist "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" 2>nul
if exist "%userprofile%\recent\*.*" del /f /s /q "%userprofile%\recent\*.*" 2>nul
if exist "%ALLUSERSPROFILE%\Documents\DrWatson\*.*" del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*" 2>nul
if exist "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk" del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk" 2>nul
rem echo 正在清理臨時(shí)文件……
for /d %%a in ("%temp%\*.*") do rd /s /q "%%a"
del /a /f /s /q "%temp%\*.*" 2>nul
for /d %%a in ("%tmp%\*.*") do rd /s /q "%%a"
del /a /f /s /q "%tmp%\*.*" 2>nul
echo 正在清理系統(tǒng)升級(jí)補(bǔ)丁留下來(lái)的反安裝目錄……
for /f "tokens=1" %%i in ('dir %SystemRoot%$*$ /s /b /ad') do rd /s /q %%i
echo 正在正在清理IE緩存、cookies、歷史紀(jì)錄等(當(dāng)前用戶(hù))...
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache>vtemp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cookies>>vtemp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v History>>vtemp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v NetHood>>vtemp.txt
reg query "HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Recent>>vtemp.txt
for /f "tokens=3*" %%a in (vtemp.txt) do (
for /d %%i in ("%%a %%b\*.*") do rd /s /q "%%i" 2>Nul
del /a /f /s /q "%%a %%b\*.*" del /q vtemp.txt 2>Nul
)
echo 清除瀏覽器地址記錄...
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedUrls" /f 2>nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedUrls"
echo 清除運(yùn)行記錄...
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f 2>nul
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /v "MRUList" /t reg_sz /d "a" /f
pause >nul
goto exit
3把2中的編碼復(fù)制黏貼到記事本中。
4保存到桌面,文件名為清理系統(tǒng)緩存.bat,注意一定要用.bat后綴。文件類(lèi)型:所有文件。
5在桌面上雙擊此bat文件。
6系統(tǒng)自動(dòng)清理,很快即可清理完成。
xp電腦清理系統(tǒng)垃圾文件解決方法2
軟件清理(下面以騰訊電腦管家為例)
下載并安裝騰訊管家,打開(kāi),點(diǎn)擊刷子圖標(biāo)。
點(diǎn)擊掃描垃圾,進(jìn)行垃圾掃描。
掃描出了垃圾,點(diǎn)擊立即清理。
清理完成以后,還可以點(diǎn)擊這里深度清理。
手動(dòng)選擇要清除的垃圾,點(diǎn)擊深度清理即可。
猜你喜歡: