Rename Item [ Result ; Item ; New Name ]
Rename Item renames a file or folder.
|Result||An optional target field to receive any error. Will be left empty when there is no error.|
|Item||Path to the item.|
|New Name||The new name.|
An item cannot be renamed to the same name as an existing item in the same folder.
To rename a file named “Contacts.fmp12” (in the default folder) to “Contacts 2.fmp12”:
Rename Item [ Item: “Contacts.fmp12” ; New Name: “Contacts 2.fmp12” ]
To rename a file named “Seville1.mp3” on the Desktop to “Sevilla.mp3” while storing any potential error in MyTable::Response:
Rename Item [ Select; Result: MyTable::Response ; Item: “.D/Seville1.mp3” ; New Name: “Sevilla.mp3” ]