|Only the following commands are being executed:|
At this point, you are in the FTP shell and batch file execution is suspended until you exit the FTP shell. You can see this if you type "bye" and hit enter. When you do, you exit the FTP shell and the batch file resumes. You see error messages for the remaining commands in the loop because they're FTP commands and you're no longer at the FTP command line. Then, the second user is processed and you're dumped at the FTP command line again. And so on... until the entire input file has been processed.
It's been a long time since I've done this, but you need to create an FTP script and specify the script file when you launch the FTP command like this: ftp /s:scriptname.scr
Instructions can be found here:
I'm sure the good folks in the programming forum could provide more detailed assistance if you need it.