Discuss this help topic in SecureBlackbox Forum

FTPS: Send custom commands

To send a custom command to the FTP server, use SendCmd() method of TElSimpleFTPSClient class. The method accepts the complete command to be sent and an array of acceptable (allowed) response codes. If the command is executed and the accepted response code is returned by the server, the method returns this response code. If the unacceptable response code is returned, the exception is thrown.

Note, that the command should not be aimed to open the data channel.

To get the reply text, sent by the server, use LastReceivedReply property of TElSimpleFTPSClient class.


FTPSClient.SendCmd("CDUP", new short[] {200, 250});
string s = FTPSClient.LastReceivedReply;

FTPSClient.SendCmd('CDUP', [200, 250]);
s := FTPSClient.LastReceivedReply;

How To articles about client-side FTPS questions

Discuss this help topic in SecureBlackbox Forum