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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FilePath to the file to which the action will be applied.Robin.FilePath
Yes
New nameNew name for the file.Robin.String
No
New file extensionNew extension of the file.Robin.String
No
OverwriteOverwrite 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.BooleantrueNo
Results
ResultPath 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

  1. Move the "File rename" action to the workspace.


  2. Set the parameters of the "File rename" action. 


  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully.

The file has been renamed.

  • Нет меток