Board logo

标题: [工具合集] XP系统一键优化网络升级版 [打印本页]

作者: hyapollo    时间: 2009-2-2 15:19     标题: XP系统一键优化网络升级版

本批处理融合整理了网上流行的服务优化,注册表优化,垃圾文件清理,插件免疫,HOSTS屏蔽等组件。并加入了自动升级的功能。本程序适合一般菜鸟优化使用,高手请无视^_^
请各位大大们不要见笑,部分代码写的比较幼稚,难免有纰漏之处,尚待优化整理。欢迎提出意见建议!QQ 9103957
程序运行会修改注册表关键部位,装有注册表防护软件的会有很多提醒。
还有本程序的自动升级组件 okhyup.exe 卡巴2009会报毒,说是自动下载类病毒。其实是没有病毒的。如果胆小就算啦,呵呵



下载FOR XP:  http://www.okhy.com/soft/setupxp.exe


部分代码如下:(仅仅一小部分)


  1. echo. & echo    ███████执行文件清理███████
  2. echo      Powered by OKHY.COM 请稍候 .....
  3. echo.
  4. echo      30% 正在清理Windows、IE临时文件...
  5. rd /s /q "%windir%\SoftwareDistribution\Download" >nul 2>nul
  6. if not exist %windir%\SoftwareDistribution\Download\nul md "%windir%\SoftwareDistribution\Download" >nul 2>nul
  7. rd /s /q "%windir%\temp"  >nul 2>nul
  8. if not exist %windir%\temp\nul md "%windir%\temp"
  9. rd /s /q %temp% >nul 2>nul
  10. if not exist %temp%\nul md %temp%  >nul 2>nul
  11. if exist "%ProgramFiles%\temp\nul" rd /s /q "%ProgramFiles%\temp"  >nul 2>nul
  12. del /f /q "%windir%\prefetch\*.*"  >nul 2>nul
  13. rd /s /q "%userprofile%\Local Settings\Temporary Internet Files"  >nul 2>nul
  14. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"  >nul 2>nul
  15. del /f /s /a /q "%userprofile%\Local Settings\Temp\*.*"  >nul 2>nul
  16. CLS
  17. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  18. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  19. echo. & echo    ███████执行文件清理███████
  20. echo      Powered by OKHY.COM 请稍候 .....
  21. echo.
  22. echo      50% 搜索并删除临时文件:*.tmp
  23. del /f /s /a /q %systemdrive%\*.tmp >nul 2>nul
  24. CLS
  25. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  26. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  27. echo. & echo    ███████执行文件清理███████
  28. echo      Powered by OKHY.COM 请稍候 .....
  29. echo.
  30. echo      55% 搜索并删除内存转储文件:*.dmp
  31. del /f /s /a /q %systemdrive%\*.dmp >nul 2>nul
  32. CLS
  33. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  34. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  35. echo. & echo    ███████执行文件清理███████
  36. echo      Powered by OKHY.COM 请稍候 .....
  37. echo.
  38. echo      57% 搜索并删除临时文件:*._mp
  39. del /f /s /a /q %systemdrive%\*._mp >nul 2>nul
  40. CLS
  41. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  42. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  43. echo. & echo    ███████执行文件清理███████
  44. echo      Powered by OKHY.COM 请稍候 .....
  45. echo.
  46. echo      59% 搜索并删除临时文件:*.gid
  47. del /f /s /a /q %systemdrive%\*.gid >nul 2>nul
  48. CLS
  49. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  50. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  51. echo. & echo    ███████执行文件清理███████
  52. echo      Powered by OKHY.COM 请稍候 .....
  53. echo.
  54. echo      61% 搜索并删除升级日志:win\KB*.log
  55. del /f /s /a /q %systemdrive%\KB*.log >nul 2>nul
  56. CLS
  57. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  58. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  59. echo. & echo    ███████执行文件清理███████
  60. echo      Powered by OKHY.COM 请稍候 .....
  61. echo.
  62. echo      64% 搜索并删除备份文件:*.old
  63. del /f /s /a /q %systemdrive%\*.old >nul 2>nul
  64. CLS
  65. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  66. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  67. echo. & echo    ███████执行文件清理███████
  68. echo      Powered by OKHY.COM 请稍候 .....
  69. echo.
  70. echo      66% 搜索并删除备份文件:*.bak
  71. del /f /s /a /q "%windir%\*.bak" >nul 2>nul
  72. CLS
  73. cd /d "%temp%" >nul 2>nul
  74. CLS
  75. IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
  76. IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
  77. echo. & echo    ███████执行文件清理███████
  78. echo      Powered by OKHY.COM 请稍候 .....
  79. echo.
  80. echo      80% 清理各分区垃圾,免疫autorun病毒
  81. for /f "skip=1" %%1 in ('wmic logicaldisk where "drivetype=3" get name')do (cd /d %%1
  82. if exist \autorun.inf attrib \autorun.inf -r -h -s >nul 2>nul
  83. if exist \autorun.inf del \autorun.inf /Q /F >nul 2>nul
  84. md \Autorun.inf\病毒免疫文件夹请不要删除 >nul 2>nul
  85. attrib +a +s +r +h \Autorun.inf >nul 2>nul
  86. if exist \desktop.ini del \desktop.ini /Q /F /A >nul 2>nul
  87. if exist \_desktop.ini del \_desktop.ini /Q /F /A >nul 2>nul
  88. MD \FOUND.TST >nul 2>nul
  89. for /f "tokens=1" %%i in ('dir \FOUND.??? /b /ad') do (rd /s /q \%%i)
  90. del /f /s /a /q \*.chk >nul 2>nul
  91. if exist \config.msi\nul rd /s /q \config.msi >nul 2>nul
  92. if exist \MSOCache\nul rd /s /q \MSOCache >nul 2>nul
  93. if exist \vod_cache_data\nul rd /s /q \vod_cache_data >nul 2>nul
  94. if exist \ppsds.pgf del \ppsds.pgf /Q /F /A >nul 2>nul
  95. if exist \pfsvoddata.bbv del \pfsvoddata.bbv /Q /F /A >nul 2>nul)
复制代码

[ 本帖最后由 hyapollo 于 2009-2-3 15:41 编辑 ]
作者: tkaven    时间: 2009-2-2 16:45     标题: 这个还没 我的 那个好

http://bathome.net/thread-3225-1-1.html

112K绿色单文件 系统优化工具 自带升级(批处理编写)
作者: hyapollo    时间: 2009-2-3 08:14

呵呵,好不好用了才知道。你那个适合有点电脑知识的。你说菜鸟看的懂你的菜单意思吗?
作者: Batcher    时间: 2009-2-3 12:08

所发代码若不止一行,请务必用code标记把代码部分首尾括起来,以便他人复制;

Q: 如何用code把代码扩起来?
A: http://bbs.bathome.net/thread-404-1-1.html
作者: hyapollo    时间: 2009-2-3 22:06

本软件已收录于华军软件  http://www.onlinedown.net/soft/79682.htm




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2