Sends a custom command to the remote server, and returns the complete reply.
The returned string may contain more than a single line and is always a synchronous (blocking) call. This means that even if the BackgroundProcessing property is set to true, the Xceed FTP Library will wait until it has received a reply from the FTP server.
This method can only be used when the CurrentState property's value is fcsConnected.
| Parameter | Description |
|---|---|
| sCommand | The FTP command to send. |
| psReply | The complete text of the reply received from the FTP server in response to the command. |
Methods that send the PWD command do not report errors in the case where the PWD command fails.
| Declaration | |
|---|---|
HRESULT SendCommand( [in] BSTR sCommand,[out, retval] BSTR* psReply ) | |
LoggingCommandLine, ProcessCompleted