I'm creating a batch file to change some routes in our network.

When it gets to the telnet portion, it doesn't enter the passwords.

here is the example..



cd \

rem .


COLOR 0E

@ECHO OFF

cls

ECHO THIS BATCH FILE WILL REROUTE ALL ADP-SIS TRAFFIC TO HOUSTON


pause

ECHO ARE YOU SURE YOU WANT TO PROCEED?

pause

ECHO ARE YOU POSITIVE?

pause


telnet 104.109.12.119
testing
enable
testing
conf t
no ip route 129.23.132.0 255.255.255.0
ip route 129.23.132.0 255.255.255.0 10.1.30.6
exit


ECHO Changing core router in Dallas.


ECHO Done.


ECHO Changing Configuration on the Tasman in Dallas


ECHO Done.


ECHO Changing Configuration on the Tasman in Houston

ECHO Done.

ECHO ALL TRAFFIC ROUTING CHANGED TO HOUSTON.
ECHO ALL TRAFFIC ROUTING CHANGED TO HOUSTON.

pause



It will stop after the telnet command and wait for me to enter the password when I have it in the script automatically.

This batch file is being used in windows.

-papa