Change the name of a file on the server.
object.RenameFile( OldName, NewName )
- A string that specifies the name of the file to be renamed on
the server. The file must exist on the server, otherwise an error
will be returned.
- A string that specifies the new name for the file on the
server. The naming conventions used for the file must be compatible
with what is used on the operating system that hosts the server.
Note that some servers may not permit you to rename the file if a
file with the new name already exists.
A value of zero is returned if the operation was successful,
otherwise a non-zero error code is returned which indicates the cause
of the failure.
The RenameFile method renames an file on the server to the
new name. Note that you must have permission to change the file name
or an error will occur.