Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Waiting until text appears
Name: bernoulli Date: September 29, 2003 at 06:02:45 Pacific OS: Windows 2000 CPU/Ram: AMD Athon 1800/DDR512
Comment:
Hi
I would like to ralize a .bat-File, who automizes some Telnet-Commands. To login, i have to wait until i can enter the User-Name and the Passwort. In a UNIX-File it looks like this.
set timeout -1 spawn telnet IP-Address rem match_max 100000 expect -exact "Enter login: " send -- "User-Name\r"
How can i do this for a .bat-File on Windows 2000?
Name: robinsiebler Date: September 29, 2003 at 15:09:40 Pacific
Reply:
I'd say either you have to be using 4NT or you have to use Windows Scripting Host. I don't think you can do this from a straight batch file (but I could be wrong).
0
Response Number 2
Name: Miskva Date: October 3, 2003 at 02:08:34 Pacific
Reply:
Try via reverse redirection:
telnet < input.log
In the input.log file, you just state the answers you would give, in the exact way they are asked when you run "telnet" just like that. I am not saying this will work, but you give it a try. Some programs are "protected" against this (on purpose or not), and any program with passwords and users might be in that case ..
Summary: I want to create a .BAT file that will start a process and wait until the process finishes before executing the next CALL. I have tried START /W but this requires me to close the cmd window that opens...
Summary: I am in the process of creating an auto-install procedure for our software. So far I have the batch file (setup.bat) that will call the auto-installation file (acrobat.bat) for the first program and ...
Summary: I am trying to create a batchfile installer which runs an exe file which installs a programme on the PC & then installs a large number of files in a folder on the c:\ drive. It takes a number of minut...