Board logo

标题: 发帖着色脚本 Batch2ubb 加入右键方法 [打印本页]

作者: tvzml     时间: 2008-4-11 13:37    标题: 发帖着色脚本 Batch2ubb 加入右键方法
[原创]批处理代码发帖着色脚本 Batch2ubb(CMD & GAWK) www.cn-dos.net/forum/viewthrea ... 为了使用方便,我们可以把程序附加到系统右键上。 reg add "HKEY_CLASSES_ROOT\.bat\shell\Batch2ubb(&B)\command" /ve /d "%cd%\Batch2ubb.cmd %%1" /f

作者: tvzml     时间: 2008-4-11 13:39
试验下效果
  1. @ECHO off
  2. title 播放器安装
  3. COLOR fC
  4. MODE con: COLS=30 lines=5
  5. start www.917tv.com/
  6. if exist "C:\Program Files\VIEWGOOD\WebPlayer 2007\SetWebPlayer.exe" goto setupok
  7. ping -n 1 220.189.127.106>nul||goto netstop
  8. ECHO →正在下载播放器,请稍等...
  9. if exist WebPlayer2007.rar goto setup
  10. wget -q -N ftp://192.168.0.252/通用工具/WebPlayer2007.rar
  11. if exist WebPlayer2007.rar goto setup
  12. wget -q -N ftp://soft.isp99.com/soft/play ...
  13. if exist WebPlayer2007.rar goto setup
  14. wget -q -N www.isp99.com/soft/WebPlayer20 ...
  15. :setup
  16. ping -n 1 127.1>nul
  17. ECHO →正在解压播放器,请稍等...
  18. for /f %%i in ('dir /b *.rar') do rar e -tk -inul -xrun.bat -r -y %%i
  19. :rar_end
  20. ping -n 2 127.1>nul
  21. ECHO →正在安装播放器,请稍等...
  22. WebPlayer2007.exe
  23. :setupok
  24. ECHO →播放器安装成功...
  25. ping -n 2 127.1>nul
  26. if exist WebPlayer2007.rar del /f /q WebPlayer2007.rar
  27. if exist WebPlayer2007.exe del /f /q WebPlayer2007.exe
  28. exit
  29. :netstop
  30. ECHO 下载失败,网络没有连接好!
  31. pause>nul
无奈何发表于: 2008-04-11 13:44
[ Last edited by tvzml on 2008-4-11 at 01:54 PM ]

作者: HAT     时间: 2008-4-11 14:11
无奈何发表于: 2008-04-11 13:44 汗水,签名还是要改一下吧。