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

批处理网址导航

这是一个简单的批处理网址导航,类似hao123。
代码如下:
  1. @echo off
  2. goto cd
  3. :cuo
  4. cls
  5. echo\&echo                  你选择的“%xz%”为无效选择!!!
  6. pause>nul&goto cd
  7. cls
  8. :1_
  9. start "" "http://www.baidu.com/" &goto cd
  10. :2_
  11. start "" "http://www.google.cn/" &goto cd
  12. :3_
  13. start "" "http://cn.yahoo.com/" &goto cd
  14. :4_
  15. start "" "http://www.qidian.com/" &goto cd
  16. :5_
  17. start "" "http://www.readnovel.com/" &goto cd
  18. :6_
  19. start "" "http://www.xxsy.net/" &goto cd
  20. :7_
  21. start "" "http://www.17173.com/" &goto cd
  22. :8_
  23. start "" "http://www.4399.net/" &goto cd
  24. :9_
  25. start "" "http://www.game.com.cn/" &goto cd
  26. :10_
  27. start "" "http://military.china.com/zh_cn/" &goto cd
  28. :11_
  29. start "" "http://mil.news.sina.com.cn/" &goto cd
  30. :12_
  31. start "" "http://news.ifeng.com/mil/" &goto cd
  32. :13_
  33. start "" "http://www.youku.com/" &goto cd
  34. :14_
  35. start "" "http://www.tudou.com/" &goto cd
  36. :15_
  37. start "" "http://www.ku6.com/" &goto cd
  38. :16_
  39. start "" "http://www.chinanews.com.cn/" &goto cd
  40. :17_
  41. start "" "http://www.gov.cn/" &goto cd
  42. :18_
  43. start "" "http://www.people.com.cn/" &goto cd
  44. :19_
  45. start "" "http://www.eastmoney.com/" &goto cd
  46. :20_
  47. start "" "http://www.hexun.com/" &goto cd
  48. :21_
  49. start "" "http://fund.eastmoney.com/" &goto cd
  50. :23_
  51. start "" "http://hi.baidu.com/" &goto cd
  52. :24_
  53. start "" "http://qzone.qq.com/" &goto cd
  54. :25_
  55. start "" "http://www.chinahr.com/" &goto cd
  56. :26_
  57. start "" "http://www.iciba.com/" &goto cd
  58. :27_
  59. start "" "http://ditu.google.cn/" &goto cd
  60. :28_
  61. start "" "http://www.railcn.net/" &goto cd
  62. :29_
  63. start "" "http://www.chinabug.net/" &goto cd
  64. :30_
  65. start "" "http://www.zhcw.com/" &goto cd
  66. :31_
  67. start "" "http://www.lottery.gov.cn/" &goto cd
  68. :32_
  69. start "" "http://www.315ts.net/" &goto cd
  70. :33_
  71. start "" "http://www.cctv.com/l" &goto cd
  72. :34_
  73. start "" "http://www.360.cn/" &goto cd
  74. :35_
  75. start "" "http://blog.sina.com.cn/" &goto cd
  76. :22_
  77. start "" "http://www.deskcity.com/" &goto cd
  78. :36_
  79. start "" "http://www.163ufo.com/" &goto cd
  80. :37_
  81. start "" "http://www.cma.gov.cn/" &goto cd
  82. :38_
  83. start "" "http://www.hunantv.com/" &goto cd
  84. :39_
  85. start "" "http://www.sina.com.cn/" &goto cd
  86. :40_
  87. start "" "http://www.qq.com/" &goto cd
  88. :41_
  89. start "" "http://www.sohu.com/" &goto cd
  90. :42_
  91. start "" "http://www.hao123.com/" &goto cd
  92. :43_
  93. start "" "http://mp3.baidu.com/" &goto cd
  94. :44_
  95. start "" "http://mp3.sogou.com/" &goto cd
  96. :45_
  97. start "" "http://mp3.gougou.com/" &goto cd
  98. :cd
  99. @echo off
  100. title 网址大全
  101. color e
  102. mode con cols=90 lines=30
  103. set "xz=:"
  104. cls
  105. echo\&echo *======================================================================================*
  106. echo.                                     主菜单
  107. echo\&echo *======================================================================================*
  108. echo. 搜索引擎       1.百度                     2.google                   3.yahoo
  109. echo. 小说           4.起点                     5.小说阅读网               6.潇湘书院
  110. echo. 游戏           7.17173                    8.4399                     9.游戏中国
  111. echo. 军事          10.中华网-军事             11.新浪军事                12.凤凰网-军事
  112. echo. 视频          13.优酷                    14.土豆                    15.酷6
  113. echo. 新闻及政府网站16.中国新闻网              17.中国政府网              18.人民网
  114. echo.               39.新浪                    40.QQ网                    41.搜狐
  115. echo. 财经          19.东方财富                20.和讯                    21.天天基金网
  116. echo. 博客          22.百度空间                24.QQ空间                  35.新浪博客
  117. echo. 其他          25.中华英才网              26.i词霸                   27.谷歌地图
  118. echo.               28.中国铁道网              29.穿帮网                  30.福利彩票
  119. echo.               31.体育彩票                32.315投诉                 33.CCTV
  120. echo.               34.360安全卫士             22.桌面城市                36.未解之谜网
  121. echo.               37.中国气象局              38.金鹰网                  
  122. echo. 音乐          43.百度MP3                 44.搜狗音乐                45.狗狗音乐               
  123. echo.                           如果你觉得本网址大全不够全面,请按:“42”
  124. echo. ————————————————————————————         0 退出
  125. for /f "tokens=15" %%i in ('ipconfig ^| find /i "ip address"') do set ip=%%i
  126. echo                                   当前IP为%ip%
  127. echo\&set /p xz=请输入0-46之内的数,然后按回车,即打开网页:
  128. if "%xz%" == "0" exit
  129. if "%xz%" == "1" goto 1_
  130. if "%xz%" == "2" goto 2_
  131. if "%xz%" == "3" goto 3_
  132. if "%xz%" == "4" goto 4_
  133. if "%xz%" == "5" goto 5_
  134. if "%xz%" == "6" goto 6_
  135. if "%xz%" == "7" goto 7_
  136. if "%xz%" == "8" goto 8_
  137. if "%xz%" == "9" goto 9_
  138. if "%xz%" == "10" goto 10_
  139. if "%xz%" == "11" goto 11_
  140. if "%xz%" == "12" goto 12_
  141. if "%xz%" == "13" goto 13_
  142. if "%xz%" == "14" goto 14_
  143. if "%xz%" == "15" goto 15_
  144. if "%xz%" == "16" goto 16_
  145. if "%xz%" == "17" goto 17_
  146. if "%xz%" == "18" goto 18_
  147. if "%xz%" == "19" goto 19_
  148. if "%xz%" == "20" goto 20_
  149. if "%xz%" == "21" goto 21_
  150. if "%xz%" == "22" goto 22_
  151. if "%xz%" == "23" goto 23_
  152. if "%xz%" == "24" goto 24_
  153. if "%xz%" == "25" goto 25_
  154. if "%xz%" == "26" goto 26_
  155. if "%xz%" == "27" goto 27_
  156. if "%xz%" == "28" goto 28_
  157. if "%xz%" == "29" goto 29_
  158. if "%xz%" == "30" goto 30_
  159. if "%xz%" == "31" goto 31_
  160. if "%xz%" == "32" goto 32_
  161. if "%xz%" == "33" goto 33_
  162. if "%xz%" == "34" goto 34_
  163. if "%xz%" == "35" goto 35_
  164. if "%xz%" == "36" goto 36_
  165. if "%xz%" == "37" goto 37_
  166. if "%xz%" == "38" goto 38_
  167. if "%xz%" == "39" goto 39_
  168. if "%xz%" == "40" goto 40_
  169. if "%xz%" == "41" goto 41_
  170. if "%xz%" == "42" goto 42_
  171. if "%xz%" == "43" goto 43_
  172. if "%xz%" == "44" goto 44_
  173. if "%xz%" == "45" goto 45_
  174. goto cuo
复制代码

~~楼主你辛苦了
把最后的if简化下
  1. if "%xz%" == "0" exit
  2. echo %xz%|findstr "[^0-9]" &&goto cuo
  3. if %xz% lss 46 goto %xz%_
  4. goto cuo
复制代码

[ 本帖最后由 qaz123654 于 2010-7-15 14:59 编辑 ]


TOP

很不错  谢谢了

TOP

不错 收藏了啊

TOP

返回列表