File create Version 8 (Net)

Action group: FIle system


Description

This action is intended to create a file.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Folder pathThe path to the folder inside which the new file will be created.Robin.FolderPathC:\doc\imgYes
File nameName of the file to be created.Robin.String
Yes
File extensionExtension of the file to be created.Robin.String
Yes
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 created file.Robin.FilePath

Special conditions of use

If a file with a matching name and extension already exists in the folder, but "Overwrite" was not marked true, an error will be thrown.

Example of use

Task

Create a file with a .txt extension.

Solution

Use the "File create" action. 

Implementation

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


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


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

Result

The program robot completed successfully.

The file is created in the specified folder. 


  • Нет меток