Batch file programing

Associate
Joined
19 Jul 2004
Posts
513
Hi all, I have a script at the moment.

open 10.254......
admin
PWD

hash
binary
get ...
get...
get ...

bye


Now the thing is i have about 200 "sites" to back up, the PWD can be a choice of 4.

How can i incorparate this into the program?

at the moment i just tried

open Ip address
Admin
pwd

hash
binary
get..
get..


user
admin
pwd2hash
binary
get..
get..

then if pwd fails pwd2 will work an so on - only thing is there are about 15 get commands and with the wrong PWD each is attempted then denied 3 times out of 4 - thus causing the script to run 4 times as long!

Any ideas?
 
Back
Top Bottom