L_InetFtpRenameFile

#include "ltweb.h"

L_INT EXT_FUNCTION L_InetFtpRenameFile(hFtp, pszOld, pszNew)

HFTP hFtp;

/* handle to an FTP connection */

L_TCHAR L_FAR *pszOld;

/* current filename */

L_TCHAR L_FAR *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

LTFIL
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:

L_InetFtpGetFile, L_InetFtpSendFile, L_InetFtpDeleteFile

Topics:

FTP Functions: File Manipulation and Sending Bitmaps Over an FTP Connection

 

How to Program with FTP Functions

Example

For an example, refer to L_InetFtpConnect Example