Group: Internet Functions (WinInet) - Library: wininet
Uploading local file to FTP server with FtpPutFile
BOOL FtpRenameFile(
HINTERNET hConnect,
LPCTSTR lpszExisting,
LPCTSTR lpszNew
);
DECLARE INTEGER FtpRenameFile IN wininet;
INTEGER hConnect,;
STRING lpszExisting,;
STRING lpszNew hConnect [in] Valid HINTERNET handle to an FTP session.
lpszExisting [in] Pointer to a null-terminated string that contains the name of the file that will have its name changed on the remote FTP server.
lpszNew [in] Pointer to a null-terminated string that contains the new name for the remote file.
Returns TRUE if successful, or FALSE otherwise.
If the file with the target name already exists, most probably it would be overwritten with new one during the renaming. At least my FTP server acts like this.
Home