电脑疯子技术论坛|电脑极客社区

微信扫一扫 分享朋友圈

已有 1772 人浏览分享

一键系统垃圾清理(Windows 7&XP)源码

  [复制链接]
1772 6
本帖最后由 Bellain 于 2011-3-25 21:33 编辑

Windows 7 CMD源码

  1. @echo off
  2. mode con: cols=75 lines=23
  3. title 系统垃圾清理工具(Win7版)
  4. color 0A
  5. pause
  6. echo.正在执行系统垃圾文件清理,请稍候……
  7. del /f /s /q %systemdrive%\*.tmp
  8. del /f /s /q %systemdrive%\*._mp
  9. rd /s /q %windir%\temp & md %windir%\temp
  10. del /f /s /q "%userprofile%\local settings\temp\*.*"
  11. del /f /s /q %windir%\prefetch\*.*
  12. del /f /s /q %systemdrive%\*.log
  13. del /f /s /q %systemdrive%\*.gid
  14. del /f /s /q %systemdrive%\*.chk
  15. del /f /s /q %windir%\*.bak
  16. del /f /s /q %systemdrive%\*.old
  17. del /f /s /q c:\$recycle.bin\*.*
  18. del /f /s /q d:\$recycle.bin\*.*
  19. del /f /s /q e:\$recycle.bin\*.*
  20. del /f /s /q f:\$recycle.bin\*.*
  21. del /f /s /q g:\$recycle.bin\*.*
  22. rd /s /q %windir%\SoftwareDistribution\Download & md %windir%\SoftwareDistribution\Download
  23. del /f /q “%userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\*.*”
  24. del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
  25. del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"


复制代码
Windows XP CMD源码

  1. @echo off
  2. mode con: cols=75 lines=23
  3. title 系统垃圾清理工具(XP版)
  4. color 0A
  5. pause
  6. echo.正在执行系统垃圾文件清理,请稍候……
  7. del /f /s /q %systemdrive%\*.tmp
  8. del /f /s /q %systemdrive%\*._mp
  9. del /f /s /q %systemdrive%\*.log
  10. del /f /s /q %systemdrive%\*.gid
  11. del /f /s /q %systemdrive%\*.chk
  12. del /f /s /q %systemdrive%\*.old
  13. del /f /s /q %systemdrive%\recycled\*.*
  14. rd /s /q %windir%\temp & md %windir%\temp
  15. del /f /s /q %windir%\*.bak
  16. del /f /s /q %windir%\help\*.*"
  17. del /f /s /q %windir%\prefetch\*.*
  18. del /f /s /q %windir%\system32\dllcache\*.dll
  19. del /f /q %userprofile%\cookies\*.*
  20. del /f /q %userprofile%\recent\*.*
  21. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
  22. del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
  23. del /f /s /q "%userprofile%\recent\*.*"
  24. del /f/s/q C:\Documents and Settings\Administrator\Local Settings\Temp\*.*
复制代码

评论 6

hebinghan hebinghan  初级会员  发表于 2011-3-25 21:11:37 | 显示全部楼层
这个不错啊,一直都在用,很简单,也很安全。

xhzg159357 xhzg159357  合格会员  发表于 2011-4-18 23:47:34 | 显示全部楼层
我好笨啊。不知道怎么用 高手给点提示吧{:3_230:}

xfeng8 xfeng8  正式会员  发表于 2011-4-18 23:54:28 | 显示全部楼层
狂顶楼主的好东西。呵呵呵。

wlakys wlakys  合格会员  发表于 2011-4-19 20:50:56 | 显示全部楼层
你建一个文本挡把代码粘贴进去然后另保存保存全部文件,把名字坠上.bat

Bellain Bellain  初级会员  发表于 2011-4-25 01:59:35 | 显示全部楼层
楼上正解,支持!

daxia00000 daxia00000  正式会员  发表于 2011-6-13 17:13:15 | 显示全部楼层
不知道这个和系统带的那个一键清理有啥区别,不过这个这个也能用,又学了一招,谢谢{:3_240:}

您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

关注

0

粉丝

297

主题
精彩推荐
热门资讯
网友晒图
图文推荐

Powered by Pcgho! X3.4

© 2008-2022 Pcgho Inc.