Ftp Object : Rename Method |
Visual Basic |
---|
Public Sub Rename( _ ByVal FromFileName As String, _ ByVal ToFileName As String _ ) |
Sequences and sends the ftpRenameFrom and ftpRenameTo commands.
If Timeout is greater than 0, this method blocks until a reply is received from the server or a ptTimeout error occurs. If Timeout is 0, this method immediately returns and the Progress event fires with FtpCmd = ftpRenameTo when the reply is received.
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):