Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

login to telnet from a batch file

Status
Not open for further replies.

ann124

Programmer
Sep 1, 2004
22
US
I was able to set up a batch file to open a telnet session, but I still have to type in my username and password for the session to actually start. Is there any way to set up the batch file to automatically enter my username and password?

Thanks
 
contents of mybatch.bat
ftp -s:D:\cescript.txt

contents of cescript.txt
open ftp.somewhere.com
anonymous
bob@bob.com
quit




Hope this helps....Stiddy
 
ann124,

sorry I completely read ftp when you specifically asked about telnet. Stupid me. As far as telnet is concerned, if you type telnet /? you will notice that the -l option allows for supplying a username. I don't have access to a NT server to see if that option was available. I am using win2k
 

Hi,
I want to know like if I invoke the telnet window from the batch file,can I pass the username and password through my same batch script to the telnet window?

Thanks,

Any ideas or soltuions are welocme. I won't be using any third party tools at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top