标题: [工具合集] XP系统一键优化网络升级版 [打印本页]
作者: hyapollo 时间: 2009-2-2 15:19 标题: XP系统一键优化网络升级版
本批处理融合整理了网上流行的服务优化,注册表优化,垃圾文件清理,插件免疫,HOSTS屏蔽等组件。并加入了自动升级的功能。本程序适合一般菜鸟优化使用,高手请无视^_^
请各位大大们不要见笑,部分代码写的比较幼稚,难免有纰漏之处,尚待优化整理。欢迎提出意见建议!QQ 9103957
程序运行会修改注册表关键部位,装有注册表防护软件的会有很多提醒。
还有本程序的自动升级组件 okhyup.exe 卡巴2009会报毒,说是自动下载类病毒。其实是没有病毒的。如果胆小就算啦,呵呵
下载FOR XP: http://www.okhy.com/soft/setupxp.exe
部分代码如下:(仅仅一小部分)
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 30% 正在清理Windows、IE临时文件...
- rd /s /q "%windir%\SoftwareDistribution\Download" >nul 2>nul
- if not exist %windir%\SoftwareDistribution\Download\nul md "%windir%\SoftwareDistribution\Download" >nul 2>nul
- rd /s /q "%windir%\temp" >nul 2>nul
- if not exist %windir%\temp\nul md "%windir%\temp"
- rd /s /q %temp% >nul 2>nul
- if not exist %temp%\nul md %temp% >nul 2>nul
- if exist "%ProgramFiles%\temp\nul" rd /s /q "%ProgramFiles%\temp" >nul 2>nul
- del /f /q "%windir%\prefetch\*.*" >nul 2>nul
- rd /s /q "%userprofile%\Local Settings\Temporary Internet Files" >nul 2>nul
- del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" >nul 2>nul
- del /f /s /a /q "%userprofile%\Local Settings\Temp\*.*" >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 50% 搜索并删除临时文件:*.tmp
- del /f /s /a /q %systemdrive%\*.tmp >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 55% 搜索并删除内存转储文件:*.dmp
- del /f /s /a /q %systemdrive%\*.dmp >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 57% 搜索并删除临时文件:*._mp
- del /f /s /a /q %systemdrive%\*._mp >nul 2>nul
- CLS
-
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 59% 搜索并删除临时文件:*.gid
- del /f /s /a /q %systemdrive%\*.gid >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 61% 搜索并删除升级日志:win\KB*.log
- del /f /s /a /q %systemdrive%\KB*.log >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 64% 搜索并删除备份文件:*.old
- del /f /s /a /q %systemdrive%\*.old >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 66% 搜索并删除备份文件:*.bak
- del /f /s /a /q "%windir%\*.bak" >nul 2>nul
- CLS
-
- cd /d "%temp%" >nul 2>nul
- CLS
- IF EXIST "%windir%\okhynew.txt" TYPE "%windir%\okhynew.txt"
- IF EXIST "%windir%\badlanip.txt" TYPE "%windir%\badlanip.txt"
- echo. & echo ███████执行文件清理███████
- echo Powered by OKHY.COM 请稍候 .....
- echo.
- echo 80% 清理各分区垃圾,免疫autorun病毒
- for /f "skip=1" %%1 in ('wmic logicaldisk where "drivetype=3" get name')do (cd /d %%1
- if exist \autorun.inf attrib \autorun.inf -r -h -s >nul 2>nul
- if exist \autorun.inf del \autorun.inf /Q /F >nul 2>nul
- md \Autorun.inf\病毒免疫文件夹请不要删除 >nul 2>nul
- attrib +a +s +r +h \Autorun.inf >nul 2>nul
- if exist \desktop.ini del \desktop.ini /Q /F /A >nul 2>nul
- if exist \_desktop.ini del \_desktop.ini /Q /F /A >nul 2>nul
- MD \FOUND.TST >nul 2>nul
- for /f "tokens=1" %%i in ('dir \FOUND.??? /b /ad') do (rd /s /q \%%i)
- del /f /s /a /q \*.chk >nul 2>nul
- if exist \config.msi\nul rd /s /q \config.msi >nul 2>nul
- if exist \MSOCache\nul rd /s /q \MSOCache >nul 2>nul
- if exist \vod_cache_data\nul rd /s /q \vod_cache_data >nul 2>nul
- if exist \ppsds.pgf del \ppsds.pgf /Q /F /A >nul 2>nul
- 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://www.bathome.net/) |
Powered by Discuz! 7.2 |