Ftp Object : Command Method |
Visual Basic |
---|
Public Sub Command( _ ByVal FtpCommand As String, _ ByRef Result As Variant _ ) |
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).
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):