一键清理系统垃圾.bat,超级一键删除垃圾.bat - 好东东爱家生活馆 隆力奇爱家生活馆

-

@echo off

echo -----------------------------------------------------------------------------

echo 清空IE临时文件目录...

del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等...

del /f /s /q %systemdrive%*.tmp

del /f /s /q %systemdrive%*._mp

rem .log大部分有可能有用

rem del /f /s /q %systemdrive%*.log

del /f /s /q %systemdrive%*.gid

del /f /s /q %systemdrive%*.chk

del /f /s /q %systemdrive%*.old

echo 清空垃圾箱,备份文件和预缓存脚本...

del /f /s /q %systemdrive%recycled*.*

del /f /s /q %windir%*.bak

del /f /s /q %windir%prefetch*.*

rd /s /q %windir%temp & md %windir%temp

rem cooke和最近历史还是保留吧...

rem del /f /q %userprofile%COOKIES s*.*

rem del /f /q %userprofile%recent*.*

echo 清理系统盘无用文件...

%windir%system32sfc.exe /purgecache

echo 优化预读信息...

%windir%system32defrag.exe %systemdrive% -b

echo 清除系统完成!

echo -----------------------------------------------------------------------------

将上面的文件存为“一键清理系统垃圾.bat”,然后双击运行即可。

建议:最好是一周运行一次清理。

下面这个是:可能清理时间会长些。

超级一键删除垃圾.bat

@echo off

color 0A

title 历史痕迹兼系统垃圾清理 beta1.0

::全盘删除Thumbs.db(缩略图缓存文件)

@echo off&setlocal enabledelayedexpansion

一键清理系统垃圾.bat,超级一键删除垃圾.bat - 好东东爱家生活馆 隆力奇爱家生活馆
for /f "delims=" %%i in ('fsutil fsinfo drives^|find ""') do (

set drive_=%%i

fsutil fsinfo drivetype !drive_:~0,2!|find "固定">nul && del /a /f /q /s !drive_:~0,2!Thumbs.db

)

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%*.tmp

del /f /s /q %windir%prefetch*.*

rd /s /q %windir%temp & md %windir%temp

del /f /q %userprofile%cookies*.*

del /f /q %userprofile%recent*.*

del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

del /f /s /q "%userprofile%recent*.*"

del /f /q "%ALLUSERSPROFILE%DocumentsDrWatson*.*">nul 2>nul

del /f /q "%USERPROFILE%Application DataMicrosoftOfficeRecent*.lnk">nul 2>nul

::清理局域网共享痕迹

reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerWorkgroupCrawlerShares" /f >nul 2>nul

::用户运行或操作历史记录

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 "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUrm" /va /f >nul 2>nul

reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUwav" /va /f >nul 2>nul

reg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUbat" /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

::清理IE浏览历史的下拉列表

reg delete "HKCUSoftwareMicrosoftInternet ExplorerTypedUrls" /va /f >nul 2>nul

echo -----------------------------------------------------------------------------

保存使用相同的方法哦

  

爱华网本文地址 » http://www.aihuau.com/a/25101013/170505.html

更多阅读

清理系统垃圾的小工具 win7系统垃圾清理工具

系统垃圾是个很不爽的东西,时常清理对电脑的正常运行是必须的。最近遇到一些人都不知道怎么清理系统垃圾,爆汗!!!除了用360,优化大师等清理之外,这里有一个简易的清理小工具,很好用:新建一个文本文档,将下面内容复制进去:+++++++++++++++++++++

WIN7的一键清理系统垃圾文件.bat 一键清除系统垃圾bat

@echo off color 0atitle win7系统垃圾清理(^o^)--www.ouyaoxiazai.comecho 清理垃圾文件,速度由电脑文件大小而定,在没看到结尾信息时 echo 请勿关闭本窗口,您现在使用的是Win7系统垃圾一键清理工具。 echo 正在清除系统垃圾文件,请稍后

一键清理系统垃圾文件.bat 一键垃圾清理 bat

满意回答[强烈推荐]30秒清除你电脑中的垃圾(使你电脑急速如飞)!-----信不信?在你上网的时候你是否注意到你的电脑系统磁盘的可用空间正在一天天在减少呢?是不是像老去的猴王一样动作一天比一天迟缓呢? 是不是游戏一天一天慢下来呢?没错!在W

声明:《一键清理系统垃圾.bat,超级一键删除垃圾.bat - 好东东爱家生活馆 隆力奇爱家生活馆》为网友爷丶有爷的范分享!如侵犯到您的合法权益请联系我们删除