I am using two files. The first file is a bat file that change the directory, creates a new sub directory if it does not exist and starts my ftp session. The second file opens the ftp session, changes the directory on the remote server, changes the directory on the local machine, and gets all file in the remote directory. The problem is I have more than 30 servers I need to receive from. I need if possible for the mkdir in the first file to be a variable as well as open and lcd in the second file. The below codes works as is and I could just keep adding to it for the other servers, but more servers will be added and I would rather just add them as a variable if it can be done. Any help would be appreciated.
start ftp download script.bat
cd C:\Documents and Settings\User\My Documents\backup files