File copy Version 13 (Net)

Action group: File system


Description

This action is for copying a file.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FilePath to the file to which the action will be applied.Robin.FilePath
Yes
Destination folderDestination folder, where the file should be copied to.Robin.FolderPathC:\doc\imgYes
New file nameNew name for the copied file. Leave blank to keep the original.Robin.String
No
OverwriteBoolean variable, optional. If the value of the variable is True and a file with the same name already exists in the destination folder, then the existing file will be overwritten, otherwise it will not be, and the action will throw an exception. Default value: FalseRobin.BooleantrueNo
Results
ResultPath to the copied file.Robin.FilePath

Special conditions of use 

None.

Example of use

Task

There is a text file. It is necessary to create a copy of it. 

Solution

Use the "File copy" action. 

Implementation

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


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


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

Result

The program robot completed successfully.

A copy of the file has been created. 

  • Нет меток