自动清理垃圾代码_第1页
自动清理垃圾代码_第2页
自动清理垃圾代码_第3页
自动清理垃圾代码_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、echo offcolor 0Atitle 历史痕迹兼系统垃圾清理 beta1.0:全盘删除 Thumbs.db (缩略图缓存文件)echo off&setlocal enabledelayedexpansionfor /f "delims=" %i in ('fsutil fsinfo drivesA|fi nd""') do (set drive_=%ifsutil fsinfo drivetype !drive_:0,2!|find " 固定">nul && del /a /f /q

2、 /s !drive_:0,2!Thumbs.db)echo 正在清理系统垃圾文件,请稍等 del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /s /q %windir%*.bakdel /

3、f /s /q %windir%*.tmpdel /f /s /q %windir%prefetch*.*rd /s /q %windir%temp & md %windir%tempdel /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*.*"d

4、el /f /s /q "%userprofile%recent*.*"del /f /q "%ALLUSERSPROFILE%DocumentsDrWatson*.*">nul 2>nuldel /f /q "%USERPROFILE%Application DataMicrosoftOfficeRecent*.lnk">nul 2>nul: :清理局域网共享痕迹regdelete"HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerWorkgrou

5、pCrawlerShares"/f >nul 2>nul: :用户运行或操作历史记录reg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocsFolder" /va /f >nul 2>nul reg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocs.txt" /va /f >nul 2>nulreg delete "HKC

6、USoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocs.rar" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocs.mp3" /va/f >nul 2>nulersionExplorerRecentDocs.jpg"ersionExplorerRecentDocs.ini"/va/vareg delete "HKCUSo

7、ftwareMicrosoftWindowsCurrentV /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV/f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV/f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV /f >nul 2>nulersionExplorerRecentDocs.bmp"

8、; /vaersionExplorerRecentDocs.doc" /vareg delete "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.eip" /va/f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV /f >nul 2>nulersionExplorerRecentDocs.htm" /vareg delete "HKCUSoftwareMicroso

9、ftWindowsCurrentV /f >nul 2>nulersionExplorerRecentDocs.ico" /vareg delete "HKCUSoftwareMicrosoftWindowsCurrentV /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV/f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV /f >nul 2>nulersionE

10、xplorerRecentDocs.inf" /vaersionExplorerRecentDocs.gif" /vaersionExplorerRecentDocs.wav" /vareg delete "HKCUSoftwareMicrosoftWindowsCurrentV/f >nul 2>nulersionExplorerRecentDocs.xls" /vareg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocs.rm&q

11、uot; /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerRecentDocs" /va/f >nul 2>nulreg"HKCUSoftwareMicrosoftWindowsCurrentV /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosof

12、tWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va

13、 /f >nul 2>nuldelete ersionExplorerComDlg32LastVisitedMRU" /vadelete ersionExplorerComDlg32OpenSaveMRU*"deleteersionExplorerComDlg32OpenSaveMRUmp3"delete ersionExplorerComDlg32OpenSaveMRUrm"delete ersionExplorerComDlg32OpenSaveMRUwav"delete ersionExplorerComDlg32OpenSa

14、veMRUbat"deleteersionExplorerComDlg32OpenSaveMRUexe"reg"HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicrosoftWindowsCurrentV /va /f >nul 2>nulreg "HKCUSoftwareMicroso

15、ftWindowsCurrentV /va /f >nul 2>nuldelete ersionExplorerComDlg32OpenSaveMRUeip"delete ersionExplorerComDlg32OpenSaveMRUico"delete ersionExplorerComDlg32OpenSaveMRUhtm"delete ersionExplorerComDlg32OpenSaveMRUjpg"reg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExp

16、lorerRunMRU" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerStreamMRU" /va /f >nul 2>nul reg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerUserAssist5E6AB780-7743-11 CF-A12B-00AA004AE837Count" /va /f >nul 2>nulr

17、eg delete "HKCUSoftwareMicrosoftWindowsCurrentV ersionExplorerUserAssist75048700-EF1F-11D 0-9888-006097DEACF9Count" /va /f >nul 2>nulreg delete "HKCUSoftwareWinRARArcHistory" /va /f >nul 2>nulreg delete "HKCUSoftwareWinRARDialogEditHistoryArcName" /va /f >

18、;nul 2>nulreg delete "HKCUSoftwareWinRARDialogEditHistoryExtrPath" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftMediaPlayerPlayerRecentFileList" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftMicrosoft Management ConsoleRecent File List" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftOffice11.0PowerPointRecent File List" /va /f >nul 2>nulreg delete "HKCUSoftwareMicrosoftOffice11.0ExcelRecent File" /va /f >nul 2>n

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论