cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

Use VBScript in InstallAnywhere 2011.

I have written a VBScript, say activate.vbs, and have trouble running it in InstallAnywhere 2011.

I can run the script in DOS using

wscript activate.vbs

What it does is to open a Telnet session and then run some commands.

I used "Execute Target File", "Execute Command", and "Execute Script/Batch file", but nothing worked for me.

Any help would be appreciated.

The activate.vbs code is as follows:

DIM objShell
DIM domain, telnet_port, usrname, pass

SET objShell = WScript.CreateObject("WScript.Shell")

domain="xxxxxx"
telnet_port=23
usrname="xxx"
pass=""

objShell.run"cmd"
WScript.Sleep 1000

objShell.SendKeys"telnet " & domain & " " & telnet_port
objShell.SendKeys("{Enter}")
WScript.Sleep 1000

objShell.SendKeys"logon " & usrname
objShell.SendKeys("{Enter}")
WScript.Sleep 1000

objShell.SendKeys(pass)
objShell.SendKeys("{Enter}")
WScript.Sleep 1000

objShell.SendKeys"exit"
objShell.SendKeys("{Enter}")
WScript.Sleep 1000

WScript.Quit 1
Labels (1)
Tags (2)
0 Kudos
2 Replies
Highlighted
Pilgrim

Got it working.

You can skip my question since I just got it working.

Thanks.
0 Kudos
Highlighted

Re: Use VBScript in InstallAnywhere 2011.

Please share your solution here. It will be helpful to others.

Thanks,
Ramya
0 Kudos