超级一键删除垃圾(保持WINDOWS系统苗条)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

超级一键删除垃圾.bat

将下面双横线下的内容保存为文本文件“超级一键删除垃圾.txt ”(如果看不见后缀,在文件夹所在的窗口依次点击:工具---文件夹选项---查看,把“隐藏已知文件类型的扩展名”前的勾去掉,确定后就能看见后缀),再将文件后缀改为“超级一键删除垃圾.bat ”,然后双击运行即可。 建议:最好是一周运行一次清理。

=================================================================== @echo off

@ ECHO.

@ ECHO.

@ ECHO. 说 明

@ ECHO -----------------------------------------------------------------------

@ ECHO 这是网上流传的批处理。它会帮您删除回收站、临时目录、最近打开过的文档痕迹 @ ECHO 等。对系统运行稍有帮助。但不能根治速度慢的问题。电脑速度慢通常是因为太多 @ ECHO 无用的运算占据CPU 和内存资源所致,非删除一些文件就能解决。建议装好系统后 @ ECHO 及时做Ghost 备份。以后如果觉得运行不畅了,就恢复系统,这是最彻底的办法。 @ ECHO ——秦川秋月——

@ ECHO -----------------------------------------------------------------------

@ ECHO.

pause

color 0A

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

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

@echo off&setlocal enabledelayedexpansion

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 Settings\Temporary Internet Files\*.*"

del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

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

del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nul

del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk">nul 2>nul

::清理局域网共享痕迹

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\WorkgroupCrawler\Shares" /f >nul 2>nul

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

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\Folder" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.txt" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.rar"/va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.mp3" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.jpg" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.ini" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.bmp" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.doc" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.eip" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.htm" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.ico" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.inf" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.gif" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.wav" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.xls" /va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs\.rm"/va /f >nul 2>nul

reg delete "HKCU\Software\Microsoft\Windows\CurrentV ersion\Explorer\RecentDocs" /va /f >nul 2>nul

相关文档
最新文档