File create Version 8 (Net)
Action group: FIle system
Description
This action is intended to create a file.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Folder path | The path to the folder inside which the new file will be created. | Robin.FolderPath | C:\doc\img | Yes |
File name | Name of the file to be created. | Robin.String | Yes | |
File extension | Extension of the file to be created. | Robin.String | Yes | |
Overwrite | Boolean 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: False | Robin.Boolean | true | No |
Results | ||||
Result | Path 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
- Move the "File create" action to the workspace.
- Set the parameters of the "File create" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
The file is created in the specified folder.
Обзор
Инструменты контента