InetFTPRename

int InetFTPRename (int FTPHandle, const char *oldFileName, const char *newFileName);

Purpose

Renames an existing file on the remote machine.

Parameters

Input
Name Type Description
FTPHandle integer A handle returned by the InetFTPLogin or InetFTPLoginEx function. The handle identifies an active FTP connection.
oldFileName const char * The pathname of an existing file on the remote machine. The path can be absolute or relative to the current working directory on the remote machine.
newFileName const char * The pathname of the new file on the remote machine. The path can be absolute or relative to the current working directory on the remote machine.

Return Value

Name Type Description
result integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.