@echo off
color 0a
echo 正在清理系统垃圾文件,请稍等......
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 %systemdrive%/recycled/*.*
del /f /s /q %windir%/*.bak
del /f /s /q %windir%/prefetch/*.*
del /f /q %userprofile%/cookies/*.*
del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"
del /f /s /q "%userprofile%/Local Settings/Temp/*.*"
del /f /s /q "%userprofile%/recent/*.*"
del /f /s /q %USERPROFILE%/Local Settings/History/*.*
del /f /s /q %USERPROFILE%/Favorites/*.*
del /f /s /q %WINDIR%/Temp/*.*
del %TMP%//*.* /q /f /S >nul
REM 清除系统缓存
sfc /purgecache>NUL
IF NOT %ERRORLEVEL%==0 ECHO =========================清除系统缓存失败====================
REM 清除WORD纪录
reg delete "HKCU/Software/Microsoft/Windows/CurrentVersion/Applets/Wordpad/Recent File List" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没WORD垃圾==========================
REM 清除MediaPlayer纪录
reg delete "HKEY_CURRENT_USER/Software/Microsoft/MediaPlayer/Player/RecentFileList" /va /f 2>nul
reg delete "HKEY_CURRENT_USER/Software/Gabest/Media Player Classic/Recent File List" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没MediaPlayer纪录===================
REM 清除WINRAR纪录
reg delete "HKEY_CURRENT_USER/Software/WinRAR/ArcHistory" /va /f 2>nul
reg delete "HKEY_CURRENT_USER/Software/WinRAR/DialogEditHistory/ExtrPath" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没winrar纪录========================
REM 清理IE工具栏
reg delete "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet Explorer/Toolbar" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没多余IE工具栏======================
REM 清除运行纪录
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/RunMRU" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没运行纪录==========================
REM 清除影音风暴纪录
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Search Assistant/ACMru" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没影音风暴纪录======================
REM 清除搜索文件夹纪录
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/RecentDocs/Folder" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没搜索文件夹纪录====================
REM 清除搜索文件纪录
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/RecentDocs" /va /f 2>nul
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/DocFindSpecMRU" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没搜索文件纪录======================
REM 清除IE中的URL
reg delete "HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/TypedURLs" /va /f 2>nul
IF NOT %ERRORLEVEL%==0 ECHO =========================没多余的URI======================
@echo 清理完成,按任意键退出 ^^^_^^
start /min mshta vbscript:CreateObject("SAPI.SpVoice").Speak("lar jee wen jian yee jing qing li wan bee")(Window.close)
exit
749

被折叠的 条评论
为什么被折叠?



