xBox
09-07-2003, 01:59 AM
Hi All,
I'm passing telnet commands using sendkeys.
I'm Attaching following code which I was coded. This is working fine.
My Question is how do I capture the response from telnet after passing a command.
Below example, passing the servername and the Username... then I have to capture the response,
Dim lReturn As Variant
Dim strTemp,strUName,strServer
strUName="TestU"
strServer="ITCat01"
strTemp = "Telnet " & strServer
lReturn = Shell(strTemp, vbNormalFocus)
AppActivate lReturn
SendKeys strUname & "{ENTER}"
I'm passing telnet commands using sendkeys.
I'm Attaching following code which I was coded. This is working fine.
My Question is how do I capture the response from telnet after passing a command.
Below example, passing the servername and the Username... then I have to capture the response,
Dim lReturn As Variant
Dim strTemp,strUName,strServer
strUName="TestU"
strServer="ITCat01"
strTemp = "Telnet " & strServer
lReturn = Shell(strTemp, vbNormalFocus)
AppActivate lReturn
SendKeys strUname & "{ENTER}"