Re: Capture screen output of Telnet using vbscript



Hi

Using the .Exec method didn't work for me. I ended up downloading and installing w3sockets from http://tech.dimac.net/ from the free downloads section. The site has code samples for automation by vbs.

Joseph

Marty List wrote:
I haven't used it with Telnet, might not work, but the .Exec method is
capable of capturing screen output (stdout).
http://msdn.microsoft.com/library/en-us/script56/html/wslrfExecMethod.asp


"Chris" <nowhere@xxxxxxxx> wrote in message news:eaTL1nUjFHA.4000@xxxxxxxxxxxxxxxxxxxxxxx

Is there any way to capture the screen output of a telnet session to a

text

file?  Code to do it would be very much appreciated as I'm on a short time
limit.  However, an explaination of how to do it will also suffice.

I currently use a 3rd party program to do this however I am trying to
accomplish this task with only what Windows 2000 Professional comes with
(including WSH 5.6).  I have tried to do this with batch files but was
unable to do so.  I wrote vbscript to send commands to telnet but can't

find

a way to capture the screen output to a text file.

Thanks in advance,
Chris





.