微笑,关怀。。。

qtp学习笔记------通过时间循环来定时启动脚本

上一篇 / 下一篇  2010-01-06 17:17:07 / 个人分类:qtp

'通过时间循环来定时启动脚本
dim IsStart,timeStart
timeStart="17:07"
IsStart=true
while IsStart
  wscript.sleep 1000
  if cstr(Hour(now))=split(timeStart,":")(0) then
    if cstr(minute(now))=cstr(cint(split(timeStart,":")(1))) then
       set ws =createobject("wscript.shell")
       ws.run "D:\function\All.vbs"
       set ws=nothing
       IsStart=false
    end if
  end if
wend

TAG:

caicai的测试饭否 引用 删除 jx9747   /   2010-01-25 16:51:43
1
 

评分:0

我来说两句

Open Toolbar