Using the @ftp -i -s:"%~f0"&GOTO:EOF command in a batch???
Posted: 03 Jun 2013 16:15
Hey folks, I have a problem with the batch file exiting itself after using this command and then attempting to exit ftp with "bye" or "quit". I'd like it to simply continue onto the next line in the batch like normal. Here's what I got:
Then the batch closes out of prompt. "Bye" should simply exit out of the ftp syntax, but I have a feeling with the unique way of using ftp here (inside the same batch file) it's going to make things a bit more complicated. I know the traditional way of doing it is simply referencing a separate ftp text document for the ftp commands, but this batch is suppose to be an all in one (does several other things). It would defeat the purpose to include more files.
@ftp -i -s:"%~f0"&GOTO:EOF
open ftp.filehostingsite.com
username
password
get file.exe
bye
Then the batch closes out of prompt. "Bye" should simply exit out of the ftp syntax, but I have a feeling with the unique way of using ftp here (inside the same batch file) it's going to make things a bit more complicated. I know the traditional way of doing it is simply referencing a separate ftp text document for the ftp commands, but this batch is suppose to be an all in one (does several other things). It would defeat the purpose to include more files.