Hey guys this is my first post. I've been getting alot of information off the site, but I'm trying to put something together and having trouble. You see it works, but it works to fast. What the code is doing is telneting into a router and instantly dropping all the text and it messes up.
<HTML>
<script language="VBScript">
<!--
Sub Validate
Dim oshell
Set oshell = createobject("Wscript.Shell")
oshell.run"telnet.exe"
oshell.sendkeys"open 10.210.226.229"+("{Enter}")
oshell.sendkeys"admin"+("{Enter}")
oshell.sendkeys"admin1234$"+("{Enter}")
oshell.sendkeys"telnet 10.210.91.9 /source f0/1"+("{Enter}")
oshell.sendkeys"root"+("{Enter}")
oshell.sendkeys"ttelnet"+("{Enter}")
oshell.sendkeys" "+("{Enter}")
Dim TheForm
Set TheForm = Document.forms("ValidForm")
If TheForm.show_ber.checked = true Then
oshell.sendkeys"show_ber"+("{Enter}")
End If
If TheForm.rb.checked = true Then
oshell.sendkeys"rb"+("{Enter}")
End If
If TheForm.tc.checked = true Then
oshell.sendkeys"tc"+("{Enter}")
End If
I need it to log in with telnet and then peform the selected commands, I tried WScript.Sleep but it just stops the script from running whereever its at. Any have anything for me please? Thank you very much