|This method is obsolete. See the Remarks section below.|
Utilities.RenameFile method to change the name of the file or folder specified by the OldName parameter to NewName.
The method is applied to the following object:
The method has the following parameters:
Specifies the name of the file or folder to be renamed.
Specifies the new name of the desired file or folder.
If the operation succeeds,
RenameFile returns True. If
RenameFile cannot rename the file or folder (for instance, if the application has no permission to modify the file/folder or NewName represents the name of an existing file/folder), it returns False.
This method is obsolete. It is supported for backward compatibility only. To rename files and folders, use one of the following methods: