[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] 搜集整理清理系统垃圾

搜集整理清理系统垃圾,球删除IE自动填表记录等
============================================================================
  1. @shift 1
  2. @Echo off
  3. title 一键清理系统盘所有垃圾 作者:Vast Sky收集整理 QQ:107281830
  4. Color 3a
  5. Echo.
  6. Echo   注意!本软件会将回收站的文件删除,请把需要保留的文件还原,以免造成文件丢失...
  7. echo. & pause
  8. Echo 正在清理系统垃圾文件,请稍等......
  9. Del /f/q "%SystemDrive%\*.tmp" 2>nul
  10. Del /f/q "%SystemDrive%\*._mp" 2>nul
  11. Del /f/q "%SystemDrive%\*.gid" 2>nul
  12. Del /f/q "%SystemDrive%\*.chk" 2>nul
  13. Del /f/q "%SystemDrive%\*.old" 2>nul
  14. Del /f/q "%SystemDrive%\*.bak" 2>nul
  15. Del /f/q "%SystemDrive%\*.log" 2>nul
  16. Del /f/q "%SystemRoot%\*.log" 2>nul
  17. Del /f/q "%SystemDrive%\Documents and Settings\*.log" 2>nul
  18. Del /f/q "%SystemRoot%\prefetch\*.*" 2>nul
  19. 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
  20. 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
  21. Rd /s/q "%SystemRoot%\Temp" 2>nul
  22. Md %SystemRoot%\Temp 2>nul
  23. Del /f/s/q "%UserProFile%\Cookies\*.*" 2>nul
  24. Del /f/s/q "%UserProFile%\Local Settings\Temporary Internet Files\*.*" 2>nul
  25. Del /f/s/q "%Tmp%\*.*" 2>nul
  26. Del /f/s/q "%UserProFile%\Recent\*.*" 2>nul
  27. Del /f/s/q "%UserProFile%\Local Settings\History\*.*" 2>nul
  28. Del /f/s/q "%UserProFile%\Application Data\Microsoft\Office\Recent\*.*" 2>nul
  29. Reg Delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f 1>nul
  30. Reg Delete "HKCU\Software\Microsoft\Internet Explorer\TypedURLs" /va /f 1>nul
  31. Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /f /v ClearRecentDocsonExit /t REG_DWORD /d 00000001
  32. 1>nul
  33. Echo.
  34. taskkill /f /im explorer.exe
  35. reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify" /f 2>nul
  36. start explorer.exe
  37. Cls
  38. Echo.
  39. Echo.
  40. Echo 报告主人:清理系统垃圾完成!  感谢您的使用! [url=http://www.V1987.Cn]Www.V1987.Cn[/url]
  41. Ping 127.0.0.1 -n 3 >nul
复制代码

**************************************************
版务执行:Batcher
执行时间:2008-09-13
操作内容:加code标签
友情提示:看不懂这个代码的朋友请不要随便运行,否则系统很可能出问题!
**************************************************


[ 本帖最后由 Batcher 于 2008-9-13 22:16 编辑 ]
http://www.2013c.cn/admin

shift 1 在开头有什么用处吗?
这批处理对于个人用户使用尚可,服务器啥的,用了就OVER。
心绪平和,眼藏静谧。

TOP

返回列表