Powered by:
FutureQuest Hosting


"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > HTML Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 11-08-2009, 10:01 AM
vexixx vexixx is offline
Junior Member
 
Join Date: Nov 2009
Webmaster Discussions: 2
Rep Power: 1
vexixx is on a distinguished road
Question VBScript/Html Help

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


End Sub

-->
</script>
</head>

<body>
<h3>78730</h3>
<hr>
<form id="ValidForm" action=""
onsubmit="Validate(); return false;" language="jscript">

Show_ber:
<input type=checkbox name="show_ber" size="12"><BR>
RB
<input type=checkbox name="rb" size="12"><BR>
TC
<input type=checkbox name="tc" size="12"><BR>
<input name="Submit" type="Submit" value="Submit">

</form>
</BODY>
</HTML>

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



Last edited by vexixx; 11-08-2009 at 11:01 AM.
Reply With Quote
  #2  
Old 11-16-2009, 01:21 AM
vexixx vexixx is offline
Junior Member
 
Join Date: Nov 2009
Webmaster Discussions: 2
Rep Power: 1
vexixx is on a distinguished road
Re: VBScript/Html Help

I've tried some other commands .waits and some others just "hoping" lol still can't make it pause.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
vbscript or html

Thread Tools
Rate This Thread
Rate This Thread:

 

Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Vbscript/html Checkbox punex HTML Forum 0 10-24-2008 12:18 AM
Variable problems in HTML / Vbscript craigpollard HTML Forum 0 08-19-2007 11:09 PM
VBscript Check box help fjmang Javascript Forum 1 03-15-2007 04:34 AM
HTML/VBSCRIPT checkbox help...please Pbalais Website Scripts Forum 4 03-13-2006 03:20 PM
HTML/VBSCRIPT checkbox help TBird2424 Website Scripts Forum 7 03-16-2004 09:38 AM


All times are GMT -5. The time now is 10:59 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.