ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
If you are using a FOREACH command, then you cannot use any GOTO within it. Using a GOTO will terminate the FOREACH processing.

Of course if you want to jump out of the FOREACH, then go ahead. But if you want to jump out, then jump in, or if you want to jump within the FOREACH block, then that is not ok.

BTW, the ScriptFTP compiler gives a completely misleading message. At the goto label, it just says "END missing".
Hi Bucket,
jump out, then jump in,


Usually, in script languages, the GOTO command does not support this. For jumping in and then return there is something called functions (you probably already know what it is), but ScriptFTP, for simplicity does not support them.
BTW, the ScriptFTP compiler gives a completely misleading message. At the goto label, it just says "END missing"
Yes, you are absolutely right. This message does not give any information about what is wrong in the script. I will file it in the bug database.