码迷,mamicode.com
首页 > 其他好文 > 详细

长时间关机测试脚本.VBS

时间:2018-10-06 14:23:49      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:config   send   时间   ble   end   password   use   scree   admin   

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

标签:config   send   时间   ble   end   password   use   scree   admin   

原文地址:https://www.cnblogs.com/classics/p/9747151.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!