来源 用Windows计划任务定时执行某一Url地址

[ 2009-4-10 9:51:01 | 作者: 一线风 | 阅读:875 | 评论:0 | 天气: sunny | 心情: normal ]
Font Size: Large | Medium | Small

结合计划任务与VBS就能实现,注意,VBS间隔的时间要小于计划任务间隔的时间

 

VBS代码
  1. Randomize   
  2. d = Rnd()   
  3. Dim ie   
  4. Set ie = CreateObject("InternetExplorer.Application")   
  5. ie.navigate("http://t.test.com/service/GameServer.aspx?rand="&d)   
  6. ie.menubar=0   
  7. ie.visible=1   
  8. ie.ToolBar=0   
  9. ie.StatusBar=0   
  10. ie.Height=360   
  11. ie.Width=500   
  12. Wscript.sleep 6000 '10秒后关闭   
  13. ie.quit   
  14. Set IE = Nothing  

 

[一线风 最后修改于 2009-4-20 10:37:12]
分类:工作相关
Tag: 计划任务 定时执行