Folder rename Version 8 (Python)

Action group: File system


Description

This action is used to change the name of the folder.

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FolderPath to the folder that should be renamedRobin.FolderPathC:\doc\imgYes
New nameNew name for the folderRobin.String
Yes
OverwriteBoolean variable, optional. If the value of the variable is True, then the existing folder will be overwritten. The default is false. If a folder with the same name already exists in the specified directory, but the value of the «Overwrite» parameter is false, an error will be thrown.Robin.BooleantrueNo
Results
ResultFull path to the moved folder.Robin.FolderPathC:\doc\img

Special conditions of use 

None.

Example of use

Task

There is a folder "New folder". It should be renamed to "Reports". 

Solution 

Use the "Folder rename" action. 

Implementation

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


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


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

Result

The program robot completed successfully.


The folder has been renamed.

  • Нет меток