Yogalakshmi
Programmer
Hi,
I am new to this scripting world, i am facing some problem while executing a similar script as described in this thread...
I have to lauch telnet to execute some Unix commands, while searching for the answer, by luck i have seen this tread ASendKeys problem... and it is quite useful also... but while i am trying to execute the script,
its throwing the message as Object required:'WScript'
Script:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "CMD.EXE /K telnet unix"
WshShell.AppActivate "telnet racerx"
WScript.Sleep 100000
WshShell.AppActivate "telnet unix"
WshShell.Wscript.Sleep 10000
WshShell.Sendkeys username
WshShell.AppActivate "telnet unix"
WshShell.Sendkeys "~"
WshShell.AppActivate "telnet unix"
WScript.Sleep 100000
WshShell.AppActivate "telnet unix"
WshShell.Sendkeys pwd
WshShell.Sendkeys "~"
Thanks in Advance,
Yoga
I am new to this scripting world, i am facing some problem while executing a similar script as described in this thread...
I have to lauch telnet to execute some Unix commands, while searching for the answer, by luck i have seen this tread ASendKeys problem... and it is quite useful also... but while i am trying to execute the script,
its throwing the message as Object required:'WScript'
Script:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "CMD.EXE /K telnet unix"
WshShell.AppActivate "telnet racerx"
WScript.Sleep 100000
WshShell.AppActivate "telnet unix"
WshShell.Wscript.Sleep 10000
WshShell.Sendkeys username
WshShell.AppActivate "telnet unix"
WshShell.Sendkeys "~"
WshShell.AppActivate "telnet unix"
WScript.Sleep 100000
WshShell.AppActivate "telnet unix"
WshShell.Sendkeys pwd
WshShell.Sendkeys "~"
Thanks in Advance,
Yoga