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

Re: Capture screen output of Telnet using vbscript by Marty

Marty
Wed Jul 20 15:05:46 CDT 2005


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@not.here> wrote in message
news:eaTL1nUjFHA.4000@TK2MSFTNGP12.phx.gbl...
> 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
>
>



Re: Capture screen output of Telnet using vbscript by Joseph

Joseph
Wed Jul 20 20:14:43 CDT 2005

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@not.here> wrote in message
> news:eaTL1nUjFHA.4000@TK2MSFTNGP12.phx.gbl...
>
>>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
>>
>>
>
>
>