Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VB Script for auto login for telnet

Reply
 
Old 07-08-2009   #1 (permalink)
neilos


 
 

VB Script for auto login for telnet

Hi

I am looking for a vbs to (auto login) to a telnet session so this
will need to login with both a user-name and password.

My System SpecsSystem Spec
Old 07-08-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: VB Script for auto login for telnet


"neilos" <neilwilliamjones@xxxxxx> wrote in message
news:f93bc4eb-b3a4-4354-b815-743169c7d2aa@xxxxxx
Quote:

> Hi
>
> I am looking for a vbs to (auto login) to a telnet session so this
> will need to login with both a user-name and password.
I don't have a VB Script solution but here is a batch file solution: It uses
nc.exe which you can download from here:
http://www.securityfocus.com/data/tools/nc11nt.zip. Type nc.exe -h to get
help.

Step 1
Create a batch file c:\Windows\MyTelnet.bat with the following lines inside:
@echo off
nc 192.168.1.99 23 < c:\Windows\MyTelnet.scr
{Adjust the IP address and the port number to suit your environment}

Step 2
Create a script file c:\Windows\MyTelnet.scr with the following lines
inside:
neilos
SomePassword
{put your telnet commands here}
exit
{Put a blank line here}

Step 3
Create a desktop shortcut that points to c:\Windows\MyTelnet.bat

Step 4
Test the shortcut you created.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to set for Auto Login? Vista General
Auto Login Vista General
Auto login Vista General
Auto Login Vista General
Auto Login Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46