Xceed FTP Library Documentation
XceedFtp control reference / Methods / RenameFile method
In This Topic
    RenameFile method
    In This Topic

    Description

    Renames a file on the FTP server.

    If the FTP server supports it, you can use this method to move a file from one folder to another. The filenames specified by the sFilename and sNewFilename parameters can be relative to the FTP server's current working folder , or can be absolute to the remote system.

    This method can only be used when the CurrentState property's value is fcsConnected.

    Parameters 

    Parameter Description
    sFilename The file to rename.
    sNewFilename  The new filename.

     

    Declaration  
    HRESULT RenameFile( [in] BSTR sFilename, [in] BSTR sNewFilename )

    Applicable properties

    AccountName

    Events triggered

    LoggingCommandLine, ProcessCompleted