美文网首页
长时间挂机测试.vbs

长时间挂机测试.vbs

作者: 七七小报 | 来源:发表于2018-10-06 10:54 被阅读0次

    Sub Main

    Dim cnt
    Dim delay
    Dim time
    Dim atttime
    atttime = 20
    delay = 3000
    time = 50
    cnt_time=3
    crt.screen.Send " " & chr(13)
    crt.screen.WaitForString"Username:"
    crt.screen.Send "admin" & chr(13)
    crt.screen.WaitForString"Password:"
    crt.screen.Send "admin" & chr(13)
    crt.screen.WaitForString">"
    crt.screen.Send "enable" & chr(13)
    crt.screen.WaitForString"(pri)>"
    crt.screen.Send "config terminal" & chr(13)
    crt.screen.WaitForString"(config)>"
    crt.screen.Send "show date" & chr(13)
    If(crt.screen.WaitForString("weew:",5)<>flase)Then 
        crt.screen.Send "time_bug"& chr(13) 
    else
        crt.screen.Send "no bug"& chr(13)   
    End If
    

    End Sub

    相关文章

      网友评论

          本文标题:长时间挂机测试.vbs

          本文链接:https://www.haomeiwen.com/subject/yfthaftx.html