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:-
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
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
...
...
How can it be done.
Please help