Dart Ftp Control
Command Method
Specifies the command to send. CR/LF is appended to each command, so it should not be included.
Undimensioned string. Where the reply from the server will be put. Any contents will be replaced.
Description
Send any command string to the server. This method is useful for using servers that have an extended vocabulary.
Syntax
Visual Basic
Public Sub Command( _
   ByVal FtpCommand As String, _
   ByRef Result As Variant _
) 
Parameters
FtpCommand
Specifies the command to send. CR/LF is appended to each command, so it should not be included.
Result
Undimensioned string. Where the reply from the server will be put. Any contents will be replaced.
Remarks

If Timeout is greater than 0, Command blocks until a reply is received from the server or a ptTimeout error occurs.

If Timeout is 0, Command immediately returns and the Progress event event fires with FtpCmd = ftpCommand when the reply is received. The Result parameter is used to capture the reply, so it must not go out of scope while the command completes (it must have file or global scope).

Error Codes

This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):

See Also

Ftp Object  | Ftp Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic