FtpRenameFileFtpRenameFile*
*Contents  *Index  *Topic Contents
*Previous Topic: FtpRemoveDirectory
*Next Topic: FtpSetCurrentDirectory

FtpRenameFile

BOOL FtpRenameFile(
    IN HINTERNET hFtpSession,
    IN LPCSTR lpszExisting,
    IN LPCSTR lpszNew
);

Renames a file stored on the FTP server.

hFtpSession
Valid handle to an FTP session.
lpszExisting
Address of a null-terminated string that contains the name of the file that will have its name changed on the remote FTP server.
lpszNew
Address of a null-terminated string that contains the new name for the remote file.

The lpszExisting and lpszNew parameters can be either partially or fully qualified file names relative to the current directory. A backslash (\) or forward slash (/) can be used as the directory separator for either name. FtpRenameFile translates the directory name separators to the appropriate character before they are used.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.