《自己动手制作“自动清理垃圾处理器”》由会员分享,可在线阅读,更多相关《自己动手制作“自动清理垃圾处理器”(3页珍藏版)》请在金锄头文库上搜索。
1、自己动手制作“自动清理垃圾处理器”一键自动清理垃圾代码:新建文本文档,把以下代码复制到文本文档,保存为“.bat”格式。就可以啦echo offcolor 0Atitle 历史痕迹兼系统垃圾清理 beta1.0:全盘删除 Thumbs.db(缩略图缓存文件)echo off&setlocal enabledelayedexpansionfor /f delims= %i in (fsutil fsinfo drives|find ) 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 /f
3、/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*.*del /f /s /q %userprofile%recen
4、t*.*del /f /q %ALLUSERSPROFILE%DocumentsDrWatson*.*nul 2nuldel /f /q %USERPROFILE%Application DataMicrosoftOfficeRecent*.lnknul 2nul:清理局域网共享痕迹reg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerWorkgroupCrawlerShares /f nul 2nul:用户运行或操作历史记录reg delete HKCUSoftwareMicrosoftWindowsCurrentVersi
5、onExplorerRecentDocsFolder /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.txt /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rar /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.mp3
6、/va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.jpg /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.ini /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.bmp /va /f nul 2nulreg delete H
7、KCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.doc /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.eip /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.htm /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindows
8、CurrentVersionExplorerRecentDocs.ico /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.inf /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.gif /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecen
9、tDocs.wav /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.xls /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs.rm /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs /va /f nul 2nulreg del
10、ete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedMRU /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRU* /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUmp3 /va /f nul 2nulreg delete H
11、KCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUrm /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUwav /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUbat /va /f nul 2nulreg delete HKCUS
12、oftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUexe /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUeip /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUico /va /f nul 2nulreg delete HKCUSoft
13、wareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUhtm /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32OpenSaveMRUjpg /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindow
14、sCurrentVersionExplorerStreamMRU /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist5E6AB780-7743-11CF-A12B-00AA004AE837Count /va /f nul 2nulreg delete HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerUserAssist75048700-EF1F-11D0-9888-006097DEACF9Count /va /f nul
15、2nulreg delete HKCUSoftwareWinRARArcHistory /va /f nul 2nulreg delete HKCUSoftwareWinRARDialogEditHistoryArcName /va /f nul 2nulreg delete HKCUSoftwareWinRARDialogEditHistoryExtrPath /va /f nul 2nulreg delete HKCUSoftwareMicrosoftMediaPlayerPlayerRecentFileList /va /f nul 2nulreg delete HKCUSoftwareMi