|
Summary
Command to send to server.
Description
The Quote property is used to send a command to the FTP server. The command is sent as is to the FTP server over the established connection. For example, setting the Quote property
to CDUP is identical to calling the ParentDir method.
The Quote property cannot be used to obtain a directory listing or for transferring files, but it can be used for any other FTP command. For example, an application may set the Quote property to
PWD to get the current working directory. The PWD command will be sent to the server and the response from the server will be delivered to the application with an OnReceive event.
The result of this operation is identical to accessing the CurrentDir property.
The server's response to the FTP command can be a single line response (for example PWD) or a multiple line response (for example HELP).
The value of the LastResult property can be checked to determine if the FTP command was executed successfully.
The Quote property can be set at run time only. There is no default value for this property.
Example
FTPClient.Quote = "HELP"
Note
The Quote command is typically used to execute commands on the server that are not directly available from the ActiveX itself.
|