| 
          Specify a command to execute on a FTP server. Syntax
          object.Command( Command ) Parameters
          
            CommandA string value which specifies the command that will be executed 
            on the server. Return Value
          A value of zero is returned if the method succeeds. Otherwise,
          a non-zero error code is returned which indicates the cause of the
          failure. Remarks
          Invoking the Command method causes the specified command to
          be executed on the server. This allows the application to take
          advantage of extended commands that are not directly available
          through the control. The ResultCode property should be checked
          to determine if the command was successful or not. Example
          
Dim nError As Long
' Report current status of the server
nError = FileTransfer1.Command("STAT")
If nError > 0 Then
    MsgBox "Command error: " & nError
Else
    MsgBox FileTransfer1.ResultCode & ": " & FileTransfer1.ResultString
End If
 See Also
          ResultCode Property,
          ResultString Property,
          OnCommand Event |