L_InetFtpRenameFile
#include "ltweb.h"
L_LTWEB_API L_INT L_InetFtpRenameFile(hFtp, pszOld, pszNew)
HFTP hFtp; |
/* handle to an FTP connection */ |
L_TCHAR *pszOld; |
/* current filename */ |
L_TCHAR *pszNew; |
/* new filename */ |
Renames a file stored on the FTP server.
Parameter |
Description |
hFtp |
Valid HFTP handle to an FTP connection. |
pszOld |
Character string that contains the name of the file that will have its name changed on the remote FTP server. This is a NULL-terminated string. |
pszNew |
Character string that contains the new name for the remote file. This is a NULL-terminated string. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
If the file specified in pszNew already exists, this function will fail.
Required DLLs and Libraries
LTWEB For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
|
Topics: |
FTP Functions: File Manipulation and Sending Bitmaps Over an FTP Connection |
|
Example
For an example, refer to L_InetFtpConnect example.