1.

Solve : Telnet using batch script?

Answer»

Hi,
I am trying to connect two telnet sessions using batch script.
After connecting one telnet session I have to enter login/password and then connect other telnet session from there.
I tried some thing like
@echo off
telnet 192.11.1.111
set /p login= ABCD
set /p password= ABCD1946
telnet 192.10.1.123

and ALSO using net use z: \\ServerName\ResourceName\ ABCD /user:Domain\ABCD1946
but I have to enter only login and password without any server name or resource name
Please suggest correct syntax for this.Any help would be appreciated.
telnet and windows command prompt are two different things.

both have different syntax.

Code: [SELECT]Microsoft Telnet> help

Commands may be abbreviated. Supported commands are:

c - close close current connection
d - display display operating parameters
o - open hostname [port] connect to hostname (default port 23).
q - quit exit telnet
set - set set options (type 'set ?' for a list)
sen - send send strings to server
st - status print status information
u - unset unset options (type 'unset ?' for a list)
?/h - help print help informationI am beginner so not ABLE to make it.Please suggest batch script for thisQuote from: BatchFileBasics on August 17, 2009, 01:28:05 AM

telnet and windows command prompt are two different things.
MAYBE so, but the OP asked if possible to automate the login of a telnet session, which sounds REASONABLY possible. Is there no way we can acheive this??Please help me out..try using putty.

much easier....interface.


Discussion

No Comment Found