I am doing FTP (put) operation and I need to get the value of returncode parameter in case of a failure. For example: If the file name is not allowed on the server I need the corresponding return code of 553 for it. I do get the error description by doing a getlasterror in my catch block but is there a way to get the FTP error code in case of failure please let me know
Thanks for your replies. I am using pub.client.ftp service but I don’t get the returncode value is not the error code. I get the previous successful command value. However, I am fine with just getting the error message now.