一键清理系统垃圾.bat,超级一键删除垃圾.bat xp一键清理垃圾bat

@echo off

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


echo 清空IE临时文件目录...
del /f /s /q "%userprofile%Local SettingsTemporary InternetFiles*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"

echo 正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old,请稍等...
一键清理系统垃圾.bat,超级一键删除垃圾.bat xp一键清理垃圾bat
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&setlocalenabledelayedexpansion

for /f "delims=" %%i in ('fsutil fsinfodrives^|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%LocalSettingsTemporary Internet Files*.*"

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

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

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

del /f /q "%USERPROFILE%ApplicationDataMicrosoftOfficeRecent*.lnk">nul2>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 "HKCUSoftwareMicrosoftMicrosoftManagement ConsoleRecent File List" /va /f >nul2>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 "HKCUSoftwareMicrosoftInternetExplorerTypedUrls" /va /f >nul2>nul

  

爱华网本文地址 » http://www.413yy.cn/a/25101014/188562.html

更多阅读

怎样清除系统垃圾文件 怎样清除手机系统内存

Windows系统在安装使用过程中都会产生很多垃圾文件,包括一些临时文件和日志文件,要怎么清除呢?一起来看一下吧!怎样清除系统垃圾文件——方法一:自制BAT清理文件怎样清除系统垃圾文件 1、首先任意一个地方新建一个文本文档。怎样清除

一键系统封装工具,XP封装超实用 雨林木风一键封装工具

一键系统封装工具,XP封装超实用——简介我为大家推荐的雨林木风系统封装工具就是系统封装工具中的精品之作,继承雨林木风作品免费又好用的优秀传统,可以帮助用户轻松的封装系统。系统封装技术已经非常成熟,软件简单而且智能稳定,下面我们

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

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

电脑系统垃圾清理 win8电脑系统垃圾清理

不管你的电脑配置有多好,使用的时间长了,都会产生很多垃圾文件。日积月累,垃圾文件就会占去大量的磁盘空间,少则几百兆,多则几个G。随之而来的就是系统运行速度变得越来越慢,不时还会死机,给工作和娱乐都会带来大大小小的麻烦。面对这样的

声明:《一键清理系统垃圾.bat,超级一键删除垃圾.bat xp一键清理垃圾bat》为网友还会不会想起我分享!如侵犯到您的合法权益请联系我们删除