首页 > 其他 > 详细

长时间关机测试脚本.VBS

时间:2018-10-06 14:11:33      阅读:159      评论:0      收藏: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.cnblogs.com/classics/p/9747151.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!