Ftp Object : AbortCommand Method |
Visual Basic |
---|
Public Sub AbortCommand() |
Sends the ftpAbort command. The server will abort the current command in progress (if any), and will then accept new commands.
This method immediately returns and the Progress event fires with FtpCmd = ftpAbort when the reply is received. If the Blocked property is True (another method is currently executing), then that method will immediately return with a ptBlocked error.
This method always returns immediately.
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):