搜集整理清理系统垃圾,球删除IE自动填表记录等
============================================================================- @shift 1
- @Echo off
- title 一键清理系统盘所有垃圾 作者:Vast Sky收集整理 QQ:107281830
- Color 3a
- Echo.
- Echo 注意!本软件会将回收站的文件删除,请把需要保留的文件还原,以免造成文件丢失...
- echo. & pause
- Echo 正在清理系统垃圾文件,请稍等......
- Del /f/q "%SystemDrive%\*.tmp" 2>nul
- Del /f/q "%SystemDrive%\*._mp" 2>nul
- Del /f/q "%SystemDrive%\*.gid" 2>nul
- Del /f/q "%SystemDrive%\*.chk" 2>nul
- Del /f/q "%SystemDrive%\*.old" 2>nul
- Del /f/q "%SystemDrive%\*.bak" 2>nul
- Del /f/q "%SystemDrive%\*.log" 2>nul
- Del /f/q "%SystemRoot%\*.log" 2>nul
- Del /f/q "%SystemDrive%\Documents and Settings\*.log" 2>nul
- Del /f/q "%SystemRoot%\prefetch\*.*" 2>nul
- For %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do rd /s /q %%a:\RECYCLER >nul 1>nul 2>nul
- For %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do rd /s /q %%a:\Recycled >nul 1>nul 2>nul
- Rd /s/q "%SystemRoot%\Temp" 2>nul
- Md %SystemRoot%\Temp 2>nul
- Del /f/s/q "%UserProFile%\Cookies\*.*" 2>nul
- Del /f/s/q "%UserProFile%\Local Settings\Temporary Internet Files\*.*" 2>nul
- Del /f/s/q "%Tmp%\*.*" 2>nul
- Del /f/s/q "%UserProFile%\Recent\*.*" 2>nul
- Del /f/s/q "%UserProFile%\Local Settings\History\*.*" 2>nul
- Del /f/s/q "%UserProFile%\Application Data\Microsoft\Office\Recent\*.*" 2>nul
- Reg Delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f 1>nul
- Reg Delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /va /f 1>nul
- Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /f /v ClearRecentDocsonExit /t REG_DWORD /d 00000001
- 1>nul
- Echo.
- taskkill /f /im explorer.exe
- reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify" /f 2>nul
- start explorer.exe
- Cls
- Echo.
- Echo.
- Echo 报告主人:清理系统垃圾完成! 感谢您的使用! [url=http://www.V1987.Cn]Www.V1987.Cn[/url]
- Ping 127.0.0.1 -n 3 >nul
复制代码
**************************************************
版务执行:Batcher
执行时间:2008-09-13
操作内容:加code标签
友情提示:看不懂这个代码的朋友请不要随便运行,否则系统很可能出问题!
**************************************************
[ 本帖最后由 Batcher 于 2008-9-13 22:16 编辑 ] |