文件说明
本功能从根本上解决了有可能出现的误删文件的问题,请放心使用。除了一键清理系统垃圾文件之外,还增加了IE临时文件管理功能,可以方便地删除IE临时文件以及方便地提取任意临时文件。清理系统垃圾文件的利器。不需做任何设置,点击一下就可以删除系统中的不必要的垃圾文件。
代码说明
@ECHOON color0A @echooff cls echo. echo*****系统垃圾文件清理器***** Title系统垃圾文件清理器奇特吧 制作人:筱越技术支持 echo已准备完成 echo.&pause cls echo. echo开始执行清理…… echo. echo正在检查cookies、历史纪录等目录位置(当前用户)…… regquery"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders"Cache>%temp%cleantmp.txt regquery"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders"Cookies>>%temp%cleantmp.txt regquery"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders"History>>%temp%cleantmp.txt regquery"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders"NetHood>>%temp%cleantmp.txt regquery"HKCUsoftwareMicrosoftWindowsCurrentVersionExplorerShellFolders"Recent>>%temp%cleantmp.txt echo正在清理Cookies、IE缓存、历史纪录等(当前用户)…… for/f"tokens=3*"%%ain(%temp%cleantmp.txt)do( for/d%%iin("%%a%%b*.*")dord/s/q"%%i" del/a/f/s/q"%%a%%b*.*" ) colorf0 cls ::跟上面几项未必是重复的(!),也是对当前用户目录 echo正在清理临时文件(系统目录)…… del/a/f/s/q"%userprofile%Locals~1Tempor~1*.*" del/a/f/s/q"%userprofile%Locals~1Temp*.*" del/a/f/s/q"%userprofile%recent*.*" del/a/f/s/q"%Temp%*.*" del/a/f/s/q"%Tmp%*.*" del/a/f/s/q"%HomePath%..IconCache.db" rd/s/q%Temp% rd/s/q%Tmp% color0D cls echo正在清理系统目录中的垃圾文件(稍候,需要点时间)…… del/a/f/s/q"%SystemRoot%*._mp" del/a/f/s/q"%SystemRoot%*.bak" del/a/f/s/q"%SystemRoot%*.dmp" del/a/f/s/q"%SystemRoot%*.gid" del/a/f/s/q"%SystemRoot%*.old" del/a/f/s/q"%SystemRoot%*.query" del/a/f/q"%SystemRoot%*.tmp" rd/s/q"%SystemRoot%DownloadedProgramFiles" rd/s/q"%SystemRoot%OfflineWebPages" rd/s/q"%systemroot%ConnectionWizard" rd/s/q"%SystemRoot%SoftwareDistributionDownload" rd/s/q"%SystemRoot%Assembly" rd/s/q"%SystemRoot%Help" rd/s/q"%SystemRoot%ReinstallBackups" del/a/s/q"%SystemRoot%inf*.pnf" del/a/f/s/q"%SystemRoot%infInfCache.1" dir%SystemRoot%inf*.*/ad/b>%SystemRoot%vTmp.txt for/f%%ain(%SystemRoot%vTmp.txt)dord/s/q"%SystemRoot%inf%%a" del/a/f/s/q"%SystemRoot%driver?*.pnf" del/a/f/s/q"%SystemRoot%driver?InfCache.1" del/a/f/s/q"%SystemDrive%driver?*.pnf" del/a/f/s/q"%SystemDrive%driver?InfCache.1" rd/s/q"%SystemRoot%temp"&md"%SystemRoot%temp" del/a/f/s/q"%SystemRoot%Prefetch*.*" del/a/f/s/q"%SystemRoot%minidump*.*" color0c cls echo正在清除无用的磁盘检错文件(系统分区)…… del/a/f/q"%SystemDrive%*.chk" dir%SystemDrive%found.???/ad/b>%SystemRoot%vTmp.txt for/f%%ain(%SystemRoot%vTmp.txt)dord/s/q"%SystemDrive%%%a" echo正在清理系统升级补丁留下来的反安装目录(已修正能正确清除)…… dir%SystemRoot%$*$/ad/b>%SystemRoot%vTmp.txt for/f%%ain(%SystemRoot%vTmp.txt)dord/s/q"%SystemRoot%%%a" color3d cls echo正在清除常见的软件垃圾项目(按默认目录)…… rd/s/q"%ProgramFiles%InstallShieldInstallationInformation" Ren"%ProgramFiles%Common~1RealUpdate_OBrealsched.exe"realsched.ex_ Del"%ProgramFiles%Common~1RealUpdate_OBrealsched.exe" RegDelete"HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun"TkBellExe/f rd/s/q"%ProgramFiles%TencentQQGameDownload" taskkill/f/im"TIMPlatform.exe"/t del/a/f/s/q"%ProgramFiles%TencentQQTIMPlatform.exe" del/a/f/s/q"%ProgramFiles%KasperskyLab*.tmp" color9A cls echo. echo垃圾清理完毕5秒后自动退出制作人:筱越技术支持 echo. ping127.1-n6>nul