FtpRenameFile Renames a file stored on the FTP server.
VB4-32,5,6
Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" (ByVal hFtpSession As Long, ByVal lpszExisting As String, ByVal lpszNew As String) As Boolean |
Operating Systems Supported |
Requires Windows NT 4.0 or later; Requires Windows 95 or later |
- hConnect
[in] Valid HINTERNET handle to an FTP session.
- lpszExisting
[in] 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
[in] Address of a null-terminated string that contains the new name for the remote file. |
Returns TRUE if successful, or FALSE otherwise. To get a specific error code, call GetLastError. |
|