FTPRENAME        Rename a file on a remote site

Top  Previous  Next

Syntax:

FTPRENAME

[ file name1 ]  [ file name2 ]

Arguments:

[ file name1 ]

Variable or string defining the existing server file name.

 

[ file name2 ]

Variable or string defining the new server file name.

Options:

None

 

 

 

When connected to a HTTP/HTTPS site, this command will only work with a DAV enabled web server.  For further details on DAV enabled web server, see http://www.webdav.org/specs/rfc2518.html.

 

This script command renames a file on the remote site from [ file name1] to [ file name2].

 

This is an example of the FTPRENAME command:

 

FTPRENAME "oldname" "newname"

 

This command may also be used to move a file to another folder on the remote site, for example:

 

FTPRENAME "OctSales.xls" "/sales/2010/oct/sales.xls"

 

Wildcard characters are not permitted with the FTPRENAME command.

 

To rename a local file, use the RENAME script command.

 

 

Related command(s): FTPCMD, FTPDELETE, FTPMAKEDIR, RENAME, MOVE