File rename Version 9 (Python)
Action group: File system
Description
This action is used to change the name of the file.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
File | Path to the file to which the action will be applied. | Robin.FilePath | Yes | |
New name | New name for the file. | Robin.String | No | |
New file extension | New extension of the file. | Robin.String | No | |
Overwrite | Overwrite existing file. If the parameter value is false, and a file with the same name and extension already exists in the specified folder, an error will be generated. The default is false. | Robin.Boolean | true | No |
Results | ||||
Result | Path to the renamed file. | Robin.FilePath |
Special conditions of use
None.
Example of use
Task
It is necessary to change the file name “Log.txt” to “Logs.txt”
Solution
Use the "File rename" action.
Implementation
- Move the "File rename" action to the workspace.
- Set the parameters of the "File rename" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
The file has been renamed.
Обзор
Инструменты контента