BlueZone Secure FTP supports Windows Return Codes. Return Codes can be very useful when used in conjunction with Windows batch files. The following is a list of supported Return Codes.
Return Code | Description |
---|---|
0 | Success - No File Transfers resulted in an error or was cancelled/aborted |
<10000 | Windows defined error code when creating file |
10001 | Not authorized by Lock setting |
10002 | Not connected to the FTP server |
10003 | Transfer canceled/aborted |
10004 | Never overwrite file is set; Transfer aborted |
10005 | FTP command timed out |
10006 | Port command failed |
10007 | Passive command failed |
10008 | Host returned error during transfer |
The following is an example of how Return Codes can be used in conjunction with a Windows batch file.
bzftp.exe /Fconfig.zft if ERRORLEVEL 10008 echo "Host returned error during transfer" if ERRORLEVEL 1 echo "Failed" if ERRORLEVEL 0 echo "Success"