Batch scripting

Status
Not open for further replies.

rishav

Broken In
Hello,

I need to do the following thing.

1) connect via telnet to a computer
2) enter password
3) execute few commands

I made a batch file to execut the commands. It works properly when i copy and paste them to telnet sessions.

Now I want to connect to the comupter via batch file. So, my batch file content was like this:-

Code:
@echooff
telnet xyz.com
set of commands
set of commands
...
...
When i execute the file the, I get connected to the computer but it prompts for password. How can I make it read the password from the file rather than prompting. Also, I want the set of command to be executed inside the telnet session.

How can it be done.

Please help
 

[xubz]

"The Cake is a Lie!!"
There is a Separate Telnet Scripting Tool! It allows you to automatically login to a Telnet Server, execute commands and then Exit.

Some people use it with Task Scheduler to automatically reboot their Routers :)

*rapidshare.com/files/61825245/TST10.zip.html

Get that tool and just run it for the Readme.

(That tool was taken from Here)
 

Garbage

God of Mistakes...
can u use parameters for password ??
I think we can pass 9 parameters for BATCH file...
 

Garbage

God of Mistakes...
rishav said:
can u give me more info so that i can google it and dl. rapidshare not working for me right now.
Here is the site *www.winsite.com/bin/Info?500000000873

and Download Now !!!
 
Status
Not open for further replies.
Top Bottom