exit {return code | 0}
Exit SDI FTP. Any active sessions will be closed immediately.
Where:
return code | is the code returned to the operating system. If executing ftp.exe (command line interface) from a batch (.bat) command line, "errorlevel" may be used to check the return code and determine the next sequence of events. |
Examples:
exit
exit 0
exit 550
Sample Script:
* Sample script using the "exit" command
* Upload text.txt to a folder that does not exist
put \invalid\test.txt
* Exit with error code.
if 550 exit550
exit 0
:exit550
exit 550