# Function Reference

# _FTP_FileRename

Renames an file on an FTP server

#include <FTPEx.au3>
_FTP_FileRename ( $hFTPSession, $sExisting, $sNew )

## Parameters

$hFTPSession | as returned by _FTP_Connect().
$sExisting | The old file name.
$sNew | The new file name.

## Return Value

Success: | 1.
Failure: | 0 and sets the @error flag to non-zero.

## Related

_FTP_Connect

## See Also

Search FtpRenameFile in MSDN Library.