Board logo

标题: [文本处理] [已解决]批处理如何将ie的可信任站点的安全级别改成低? [打印本页]

作者: beck1321    时间: 2011-12-27 09:58     标题: [已解决]批处理如何将ie的可信任站点的安全级别改成低?

如何将自己的网站加入信任列表 这一条 已经百度到了

但如何将可信站点的安全级别改为低
在网上百度了下 很多都是针对自定义级别里的项目逐个修改的
都会产生一些问题

比如运行完了以后 打开ie提示要修复,不晓得是哪里不该降级呢
  1. echo Set WshShell = WScript.CreateObject("WScript.Shell") >k4me.vbs
  2. echo >>k4me.vbs WScript.Sleep 10
  3. echo >>k4me.vbs WshShell.SendKeys "{right}"
  4. echo >>k4me.vbs WshShell.SendKeys "{right}"
  5. echo >>k4me.vbs WshShell.SendKeys "{right}"
  6. echo >>k4me.vbs WScript.Sleep 3
  7. echo >>k4me.vbs WshShell.AppActivate "internet 属性"
  8. echo >>k4me.vbs WScript.Sleep 3
  9. echo >>k4me.vbs WshShell.AppActivate "internet 属性"
  10. echo >>k4me.vbs WScript.Sleep 3
  11. echo >>k4me.vbs WshShell.SendKeys "%%c"  
  12. echo >>k4me.vbs WScript.Sleep 222
  13. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}" 'a1
  14. echo >>k4me.vbs WScript.Sleep 3
  15. echo >>k4me.vbs WshShell.SendKeys " "
  16. echo >>k4me.vbs WScript.Sleep 3
  17. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'a2
  18. echo >>k4me.vbs WScript.Sleep 3
  19. echo >>k4me.vbs WshShell.SendKeys " "
  20. echo >>k4me.vbs WScript.Sleep 3
  21. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"  'a3
  22. echo >>k4me.vbs WScript.Sleep 3
  23. echo >>k4me.vbs WshShell.SendKeys " "
  24. echo >>k4me.vbs WScript.Sleep 3
  25. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  26. echo >>k4me.vbs WScript.Sleep 3
  27. echo >>k4me.vbs WshShell.SendKeys " "
  28. echo >>k4me.vbs WScript.Sleep 3
  29. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  30. echo >>k4me.vbs WScript.Sleep 3
  31. echo >>k4me.vbs WshShell.SendKeys " "
  32. echo >>k4me.vbs WScript.Sleep 3
  33. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  34. echo >>k4me.vbs WScript.Sleep 3
  35. echo >>k4me.vbs WshShell.SendKeys " "
  36. echo >>k4me.vbs WScript.Sleep 3
  37. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  38. echo >>k4me.vbs WScript.Sleep 3
  39. echo >>k4me.vbs WshShell.SendKeys " "
  40. echo >>k4me.vbs WScript.Sleep 3
  41. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"  
  42. echo >>k4me.vbs WScript.Sleep 3
  43. echo >>k4me.vbs WshShell.SendKeys " "
  44. echo >>k4me.vbs WScript.Sleep 3
  45. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  46. echo >>k4me.vbs WScript.Sleep 3
  47. echo >>k4me.vbs WshShell.SendKeys " "
  48. echo >>k4me.vbs WScript.Sleep 3
  49. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  50. echo >>k4me.vbs WScript.Sleep 3
  51. echo >>k4me.vbs WshShell.SendKeys " "
  52. echo >>k4me.vbs WScript.Sleep 3
  53. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  54. echo >>k4me.vbs WScript.Sleep 3
  55. echo >>k4me.vbs WshShell.SendKeys " "
  56. echo >>k4me.vbs WScript.Sleep 3
  57. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"  
  58. echo >>k4me.vbs WScript.Sleep 3
  59. echo >>k4me.vbs WshShell.SendKeys " "
  60. echo >>k4me.vbs WScript.Sleep 3
  61. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  62. echo >>k4me.vbs WScript.Sleep 3
  63. echo >>k4me.vbs WshShell.SendKeys " "
  64. echo >>k4me.vbs WScript.Sleep 3
  65. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  66. echo >>k4me.vbs WScript.Sleep 3
  67. echo >>k4me.vbs WshShell.SendKeys " "
  68. echo >>k4me.vbs WScript.Sleep 3
  69. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'java
  70. echo >>k4me.vbs WScript.Sleep 3
  71. echo >>k4me.vbs WshShell.SendKeys " "
  72. echo >>k4me.vbs WScript.Sleep 3
  73. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"  
  74. echo >>k4me.vbs WScript.Sleep 3
  75. echo >>k4me.vbs WshShell.SendKeys " "
  76. echo >>k4me.vbs WScript.Sleep 3
  77. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  78. echo >>k4me.vbs WScript.Sleep 3
  79. echo >>k4me.vbs WshShell.SendKeys " "
  80. echo >>k4me.vbs WScript.Sleep 3
  81. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  82. echo >>k4me.vbs WScript.Sleep 3
  83. echo >>k4me.vbs WshShell.SendKeys " "
  84. echo >>k4me.vbs WScript.Sleep 3
  85. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  86. echo >>k4me.vbs WScript.Sleep 3
  87. echo >>k4me.vbs WshShell.SendKeys " "
  88. echo >>k4me.vbs WScript.Sleep 3
  89. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  90. echo >>k4me.vbs WScript.Sleep 3
  91. echo >>k4me.vbs WshShell.SendKeys " "
  92. echo >>k4me.vbs WScript.Sleep 3
  93. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'other
  94. echo >>k4me.vbs WScript.Sleep 3
  95. echo >>k4me.vbs WshShell.SendKeys " "
  96. echo >>k4me.vbs WScript.Sleep 3
  97. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  98. echo >>k4me.vbs WScript.Sleep 3
  99. echo >>k4me.vbs WshShell.SendKeys " "
  100. echo >>k4me.vbs WScript.Sleep 3
  101. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  102. echo >>k4me.vbs WScript.Sleep 3
  103. echo >>k4me.vbs WshShell.SendKeys " "
  104. echo >>k4me.vbs WScript.Sleep 3
  105. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  106. echo >>k4me.vbs WScript.Sleep 3
  107. echo >>k4me.vbs WshShell.SendKeys " "
  108. echo >>k4me.vbs WScript.Sleep 3
  109. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  110. echo >>k4me.vbs WScript.Sleep 3
  111. echo >>k4me.vbs WshShell.SendKeys " "
  112. echo >>k4me.vbs WScript.Sleep 3
  113. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  114. echo >>k4me.vbs WScript.Sleep 3
  115. echo >>k4me.vbs WshShell.SendKeys " "
  116. echo >>k4me.vbs WScript.Sleep 3
  117. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  118. echo >>k4me.vbs WScript.Sleep 3
  119. echo >>k4me.vbs WshShell.SendKeys " "
  120. echo >>k4me.vbs WScript.Sleep 3
  121. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  122. echo >>k4me.vbs WScript.Sleep 3
  123. echo >>k4me.vbs WshShell.SendKeys " "
  124. echo >>k4me.vbs WScript.Sleep 3
  125. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  126. echo >>k4me.vbs WScript.Sleep 3
  127. echo >>k4me.vbs WshShell.SendKeys " "
  128. echo >>k4me.vbs WScript.Sleep 3
  129. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  130. echo >>k4me.vbs WScript.Sleep 3
  131. echo >>k4me.vbs WshShell.SendKeys " "
  132. echo >>k4me.vbs WScript.Sleep 3
  133. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  134. echo >>k4me.vbs WScript.Sleep 3
  135. echo >>k4me.vbs WshShell.SendKeys " "
  136. echo >>k4me.vbs WScript.Sleep 3
  137. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  138. echo >>k4me.vbs WScript.Sleep 3
  139. echo >>k4me.vbs WshShell.SendKeys " "
  140. echo >>k4me.vbs WScript.Sleep 3
  141. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  142. echo >>k4me.vbs WScript.Sleep 3
  143. echo >>k4me.vbs WshShell.SendKeys " "
  144. echo >>k4me.vbs WScript.Sleep 3
  145. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  146. echo >>k4me.vbs WScript.Sleep 3
  147. echo >>k4me.vbs WshShell.SendKeys " "
  148. echo >>k4me.vbs WScript.Sleep 3
  149. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  150. echo >>k4me.vbs WScript.Sleep 3
  151. echo >>k4me.vbs WshShell.SendKeys " "
  152. echo >>k4me.vbs WScript.Sleep 3
  153. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  154. echo >>k4me.vbs WScript.Sleep 3
  155. echo >>k4me.vbs WshShell.SendKeys " "
  156. echo >>k4me.vbs WScript.Sleep 3
  157. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  158. echo >>k4me.vbs WScript.Sleep 3
  159. echo >>k4me.vbs WshShell.SendKeys " "
  160. echo >>k4me.vbs WScript.Sleep 3
  161. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  162. echo >>k4me.vbs WScript.Sleep 3
  163. echo >>k4me.vbs WshShell.SendKeys " "
  164. echo >>k4me.vbs WScript.Sleep 3
  165. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  166. echo >>k4me.vbs WScript.Sleep 3
  167. echo >>k4me.vbs WshShell.SendKeys " "
  168. echo >>k4me.vbs WScript.Sleep 3
  169. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  170. echo >>k4me.vbs WScript.Sleep 3
  171. echo >>k4me.vbs WshShell.SendKeys " "
  172. echo >>k4me.vbs WScript.Sleep 3
  173. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  174. echo >>k4me.vbs WScript.Sleep 3
  175. echo >>k4me.vbs WshShell.SendKeys " "
  176. echo >>k4me.vbs WScript.Sleep 3
  177. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  178. echo >>k4me.vbs WScript.Sleep 3
  179. echo >>k4me.vbs WshShell.SendKeys " "
  180. echo >>k4me.vbs WScript.Sleep 3
  181. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  182. echo >>k4me.vbs WScript.Sleep 3
  183. echo >>k4me.vbs WshShell.SendKeys " "
  184. echo >>k4me.vbs WScript.Sleep 3
  185. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  186. echo >>k4me.vbs WScript.Sleep 3
  187. echo >>k4me.vbs WshShell.SendKeys " "
  188. echo >>k4me.vbs WScript.Sleep 3
  189. echo >>k4me.vbs WshShell.SendKeys "{DOWN 6}" 'login 1/3/4
  190. echo >>k4me.vbs WScript.Sleep 3
  191. echo >>k4me.vbs WshShell.SendKeys " "
  192. echo >>k4me.vbs WshShell.SendKeys "{enter}"
  193. echo >>k4me.vbs WshShell.SendKeys "y"
  194. echo >>k4me.vbs WshShell.SendKeys "{esc}"
  195. echo rundll32 shell32.dll,Control_RunDLL inetcpl.cpl,,1 >k4me2.bat
  196. start k4me2.bat
  197. k4me.vbs
  198. tskill cmd
复制代码
以上是网上百度到的  第一次试了好像是成功变为低 ,但第二次我改回中,再运行时 貌似又不行,还有就是桌面上多了东西,
我的是ie8


跪求高手给一个一次到位,最好是依据可信站点的安全级别"低"的默认设置来做?  谢谢了 好人一生平安
作者: awk    时间: 2011-12-27 10:07

不要用VBS模拟鼠标点击,试试手工设置一下,然后观察注册表的变化。
作者: beck1321    时间: 2011-12-27 11:09

回复 2# awk


请问如何查看注册表差异变化?
我百度了个监控注册表的软件 不是很好用
作者: awk    时间: 2011-12-27 11:11

回复 3# beck1321


试试RegMon如何
作者: beck1321    时间: 2011-12-27 16:19

回复 4# awk


    嗯 用的就是这个 不知道咋弄 不停的有东西出来。。 屏蔽了其他以后 还是不清楚 也不知道到底是看reg 还是 explorer 还是ie进程

最后我还是研究了那个 百度到的代码 其实不知为什么他少了几个down  所以我一个一个对过去了 补充了几个就正确了

但不知为什么运行后 设置界面没有关闭 非得自己点一下确定,不知道哪里的问题

求教
  1. echo Set WshShell = WScript.CreateObject("WScript.Shell") >k4me.vbs
  2. echo >>k4me.vbs WScript.Sleep 10
  3. echo >>k4me.vbs WshShell.SendKeys "{right}"
  4. echo >>k4me.vbs WshShell.SendKeys "{right}"
  5. echo >>k4me.vbs WshShell.SendKeys "{right}"
  6. echo >>k4me.vbs WScript.Sleep 3
  7. echo >>k4me.vbs WshShell.AppActivate "internet 属性"
  8. echo >>k4me.vbs WScript.Sleep 3
  9. echo >>k4me.vbs WshShell.AppActivate "internet 属性"
  10. echo >>k4me.vbs WScript.Sleep 3
  11. echo >>k4me.vbs WshShell.SendKeys "%%c"  
  12. echo >>k4me.vbs WScript.Sleep 222
  13. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}" 'a1
  14. echo >>k4me.vbs WScript.Sleep 3
  15. echo >>k4me.vbs WshShell.SendKeys " "
  16. echo >>k4me.vbs WScript.Sleep 3
  17. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'a2
  18. echo >>k4me.vbs WScript.Sleep 3
  19. echo >>k4me.vbs WshShell.SendKeys " "
  20. echo >>k4me.vbs WScript.Sleep 3
  21. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"  'a3
  22. echo >>k4me.vbs WScript.Sleep 3
  23. echo >>k4me.vbs WshShell.SendKeys " "
  24. echo >>k4me.vbs WScript.Sleep 3
  25. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  26. echo >>k4me.vbs WScript.Sleep 3
  27. echo >>k4me.vbs WshShell.SendKeys " "
  28. echo >>k4me.vbs WScript.Sleep 3
  29. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  30. echo >>k4me.vbs WScript.Sleep 3
  31. echo >>k4me.vbs WshShell.SendKeys " "
  32. echo >>k4me.vbs WScript.Sleep 3
  33. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  34. echo >>k4me.vbs WScript.Sleep 3
  35. echo >>k4me.vbs WshShell.SendKeys " "
  36. echo >>k4me.vbs WScript.Sleep 3
  37. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  38. echo >>k4me.vbs WScript.Sleep 3
  39. echo >>k4me.vbs WshShell.SendKeys " "
  40. echo >>k4me.vbs WScript.Sleep 3
  41. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"  
  42. echo >>k4me.vbs WScript.Sleep 3
  43. echo >>k4me.vbs WshShell.SendKeys " "
  44. echo >>k4me.vbs WScript.Sleep 3
  45. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  46. echo >>k4me.vbs WScript.Sleep 3
  47. echo >>k4me.vbs WshShell.SendKeys " "
  48. echo >>k4me.vbs WScript.Sleep 3
  49. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  50. echo >>k4me.vbs WScript.Sleep 3
  51. echo >>k4me.vbs WshShell.SendKeys " "
  52. echo >>k4me.vbs WScript.Sleep 3
  53. echo >>k4me.vbs WshShell.SendKeys "{DOWN 2}"
  54. echo >>k4me.vbs WScript.Sleep 3
  55. echo >>k4me.vbs WshShell.SendKeys " "
  56. echo >>k4me.vbs WScript.Sleep 3
  57. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"  
  58. echo >>k4me.vbs WScript.Sleep 3
  59. echo >>k4me.vbs WshShell.SendKeys " "
  60. echo >>k4me.vbs WScript.Sleep 3
  61. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  62. echo >>k4me.vbs WScript.Sleep 3
  63. echo >>k4me.vbs WshShell.SendKeys " "
  64. echo >>k4me.vbs WScript.Sleep 3
  65. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  66. echo >>k4me.vbs WScript.Sleep 3
  67. echo >>k4me.vbs WshShell.SendKeys " "
  68. echo >>k4me.vbs WScript.Sleep 3
  69. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'java
  70. echo >>k4me.vbs WScript.Sleep 3
  71. echo >>k4me.vbs WshShell.SendKeys " "
  72. echo >>k4me.vbs WScript.Sleep 3
  73. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"  
  74. echo >>k4me.vbs WScript.Sleep 3
  75. echo >>k4me.vbs WshShell.SendKeys " "
  76. echo >>k4me.vbs WScript.Sleep 3
  77. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  78. echo >>k4me.vbs WScript.Sleep 3
  79. echo >>k4me.vbs WshShell.SendKeys " "
  80. echo >>k4me.vbs WScript.Sleep 3
  81. echo >>k4me.vbs WshShell.SendKeys "{DOWN 7}"
  82. echo >>k4me.vbs WScript.Sleep 3
  83. echo >>k4me.vbs WshShell.SendKeys " "
  84. echo >>k4me.vbs WScript.Sleep 3
  85. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  86. echo >>k4me.vbs WScript.Sleep 3
  87. echo >>k4me.vbs WshShell.SendKeys " "
  88. echo >>k4me.vbs WScript.Sleep 3
  89. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  90. echo >>k4me.vbs WScript.Sleep 3
  91. echo >>k4me.vbs WshShell.SendKeys " "
  92. echo >>k4me.vbs WScript.Sleep 3
  93. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'other
  94. echo >>k4me.vbs WScript.Sleep 3
  95. echo >>k4me.vbs WshShell.SendKeys " "
  96. echo >>k4me.vbs WScript.Sleep 3
  97. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  98. echo >>k4me.vbs WScript.Sleep 3
  99. echo >>k4me.vbs WshShell.SendKeys " "
  100. echo >>k4me.vbs WScript.Sleep 3
  101. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  102. echo >>k4me.vbs WScript.Sleep 3
  103. echo >>k4me.vbs WshShell.SendKeys " "
  104. echo >>k4me.vbs WScript.Sleep 3
  105. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  106. echo >>k4me.vbs WScript.Sleep 3
  107. echo >>k4me.vbs WshShell.SendKeys " "
  108. echo >>k4me.vbs WScript.Sleep 3
  109. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  110. echo >>k4me.vbs WScript.Sleep 3
  111. echo >>k4me.vbs WshShell.SendKeys " "
  112. echo >>k4me.vbs WScript.Sleep 3
  113. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  114. echo >>k4me.vbs WScript.Sleep 3
  115. echo >>k4me.vbs WshShell.SendKeys " "
  116. echo >>k4me.vbs WScript.Sleep 3
  117. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  118. echo >>k4me.vbs WScript.Sleep 3
  119. echo >>k4me.vbs WshShell.SendKeys " "
  120. echo >>k4me.vbs WScript.Sleep 3
  121. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  122. echo >>k4me.vbs WScript.Sleep 3
  123. echo >>k4me.vbs WshShell.SendKeys " "
  124. echo >>k4me.vbs WScript.Sleep 3
  125. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  126. echo >>k4me.vbs WScript.Sleep 3
  127. echo >>k4me.vbs WshShell.SendKeys " "
  128. echo >>k4me.vbs WScript.Sleep 3
  129. echo >>k4me.vbs WshShell.SendKeys "{DOWN 2}"
  130. echo >>k4me.vbs WScript.Sleep 3
  131. echo >>k4me.vbs WshShell.SendKeys " "
  132. echo >>k4me.vbs WScript.Sleep 3
  133. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  134. echo >>k4me.vbs WScript.Sleep 3
  135. echo >>k4me.vbs WshShell.SendKeys " "
  136. echo >>k4me.vbs WScript.Sleep 3
  137. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  138. echo >>k4me.vbs WScript.Sleep 3
  139. echo >>k4me.vbs WshShell.SendKeys " "
  140. echo >>k4me.vbs WScript.Sleep 3
  141. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  142. echo >>k4me.vbs WScript.Sleep 3
  143. echo >>k4me.vbs WshShell.SendKeys " "
  144. echo >>k4me.vbs WScript.Sleep 3
  145. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  146. echo >>k4me.vbs WScript.Sleep 3
  147. echo >>k4me.vbs WshShell.SendKeys " "
  148. echo >>k4me.vbs WScript.Sleep 3
  149. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  150. echo >>k4me.vbs WScript.Sleep 3
  151. echo >>k4me.vbs WshShell.SendKeys " "
  152. echo >>k4me.vbs WScript.Sleep 3
  153. echo >>k4me.vbs WshShell.SendKeys "{DOWN 5}"
  154. echo >>k4me.vbs WScript.Sleep 3
  155. echo >>k4me.vbs WshShell.SendKeys " "
  156. echo >>k4me.vbs WScript.Sleep 3
  157. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  158. echo >>k4me.vbs WScript.Sleep 3
  159. echo >>k4me.vbs WshShell.SendKeys " "
  160. echo >>k4me.vbs WScript.Sleep 3
  161. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  162. echo >>k4me.vbs WScript.Sleep 3
  163. echo >>k4me.vbs WshShell.SendKeys " "
  164. echo >>k4me.vbs WScript.Sleep 3
  165. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  166. echo >>k4me.vbs WScript.Sleep 3
  167. echo >>k4me.vbs WshShell.SendKeys " "
  168. echo >>k4me.vbs WScript.Sleep 3
  169. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  170. echo >>k4me.vbs WScript.Sleep 3
  171. echo >>k4me.vbs WshShell.SendKeys " "
  172. echo >>k4me.vbs WScript.Sleep 3
  173. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  174. echo >>k4me.vbs WScript.Sleep 3
  175. echo >>k4me.vbs WshShell.SendKeys " "
  176. echo >>k4me.vbs WScript.Sleep 3
  177. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  178. echo >>k4me.vbs WScript.Sleep 3
  179. echo >>k4me.vbs WshShell.SendKeys " "
  180. echo >>k4me.vbs WScript.Sleep 3
  181. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  182. echo >>k4me.vbs WScript.Sleep 3
  183. echo >>k4me.vbs WshShell.SendKeys " "
  184. echo >>k4me.vbs WScript.Sleep 3
  185. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}"
  186. echo >>k4me.vbs WScript.Sleep 3
  187. echo >>k4me.vbs WshShell.SendKeys " "
  188. echo >>k4me.vbs WScript.Sleep 3
  189. echo >>k4me.vbs WshShell.SendKeys "{DOWN 4}" 'login 1/3/4
  190. echo >>k4me.vbs WScript.Sleep 3
  191. echo >>k4me.vbs WshShell.SendKeys " "
  192. echo >>k4me.vbs WScript.Sleep 3
  193. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  194. echo >>k4me.vbs WScript.Sleep 3
  195. echo >>k4me.vbs WshShell.SendKeys " "
  196. echo >>k4me.vbs WScript.Sleep 3
  197. echo >>k4me.vbs WshShell.SendKeys "{DOWN 3}"
  198. echo >>k4me.vbs WScript.Sleep 3
  199. echo >>k4me.vbs WshShell.SendKeys " "
  200. echo >>k4me.vbs WScript.Sleep 3
  201. echo >>k4me.vbs WshShell.SendKeys "{DOWN 7}"
  202. echo >>k4me.vbs WScript.Sleep 3
  203. echo >>k4me.vbs WshShell.SendKeys " "
  204. echo >>k4me.vbs WshShell.SendKeys "{enter}"
  205. echo >>k4me.vbs WshShell.SendKeys "y"
  206. echo >>k4me.vbs WshShell.SendKeys "{esc}"
  207. echo rundll32 shell32.dll,Control_RunDLL inetcpl.cpl,,1 >k4me2.bat
  208. start k4me2.bat
  209. k4me.vbs
  210. del k4me2.bat
  211. del k4me.vbs
  212. tskill cmd
复制代码

作者: beck1321    时间: 2011-12-27 16:25

额 又发现 有时运行 竟然会设置到 internet 设置上去。。。

而且 有时 那个确定的界面可以完成自动确定


奇怪啊奇怪、、、
作者: beck1321    时间: 2011-12-27 16:39


我试了下 把关键地方的
echo >>k4me.vbs WScript.Sleep 3
改为
echo >>k4me.vbs WScript.Sleep 50

貌似 以上问题都没了 呵呵呵呵呵呵


或许是延时 过短导致的吧  我再多试几次 呵呵呵
作者: bluewing009    时间: 2011-12-27 22:10

划拉注册表,不推荐用sendkey如果当前活动界面不是的话就会失败…………
作者: awk    时间: 2011-12-27 23:36

回复 5# beck1321


再试试RegSnap




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