tft每日頭條

 > 科技

 > 一鍵清理bat方法

一鍵清理bat方法

科技 更新时间:2024-06-30 18:16:48

一鍵清理bat方法?根據網上傳播的自動清理系統垃圾Bat,針對用戶使用習慣進行了優化 ,将下面的源碼複制到記事本然後改拓展名為.bat也可以直接下載使用,今天小編就來聊一聊關于一鍵清理bat方法?接下來我們就一起去研究一下吧!

一鍵清理bat方法(優化版清理系統垃圾Bat文件)1

一鍵清理bat方法

根據網上傳播的自動清理系統垃圾Bat,針對用戶使用習慣進行了優化 ,将下面的源碼複制到記事本然後改拓展名為.bat也可以直接下載使用

@ECHOON color0A @echooff cls echo. echo*****系統垃圾文件清理器***** Title系統垃圾文件清理器 制作人:妖孽 echo已準備完成 echo.&pause cls echo. echo開始執行清理…… echo. echo正在檢查cookies、曆史紀錄等目錄位置(當前用戶)…… regquery"HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders"Cache>%temp%\cleantmp.txt regquery"HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders"Cookies>>%temp%\cleantmp.txt regquery"HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders"History>>%temp%\cleantmp.txt regquery"HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders"NetHood>>%temp%\cleantmp.txt regquery"HKCU\software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders"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~1\Tempor~1\*.*" del/a/f/s/q"%userprofile%\Locals~1\Temp\*.*" 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%\SoftwareDistribution\Download" 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%\inf\InfCache.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~1\Real\Update_OB\realsched.exe"realsched.ex_ Del"%ProgramFiles%\Common~1\Real\Update_OB\realsched.exe" RegDelete"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"TkBellExe/f rd/s/q"%ProgramFiles%\Tencent\QQGame\Download" taskkill/f/im"TIMPlatform.exe"/t del/a/f/s/q"%ProgramFiles%\Tencent\QQ\TIMPlatform.exe" del/a/f/s/q"%ProgramFiles%\KasperskyLab\*.tmp" color9A cls echo. echo垃圾清理完畢5秒後自動退出 制作人:妖孽 echo. ping127.1-n6>nul

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关科技资讯推荐

热门科技资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved