Run script command Version 12 (Net)
Action group: Processes
Description
Executes the specified command at the specified interpreter.
Action icon
Parameters
Input parameters
Interpreter - Interpreter to execute the command.
Command - The command to execute.
Output parameters
Completed successfully - A boolean variable that is returned when the workflow completes.
Table - A variable of the Table type.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Interpreter | Interpreter to execute command | Robin.String | Yes | |
Command | Command to be executed | Robin.String | Yes | |
Results | ||||
Completed successfully | A boolean variable that is returned at the end of the process. True - the script was executed successfully, false - not successful | Robin.Boolean | true | |
Table | A variable of the Table type, where the result is written in the Output column, the Error column contains an error that occurred during the operation of the action, and the ExitCode column contains the number 0 or 1, where 0 - the script was executed successfully, 1 - not successful. | Robin.DataTable |
Special conditions of use
The result of script execution is written to two variables:
- Variable of Boolean type, where true - the script is executed successfully, false - not successfully
- A variable of the Table type, where in the Output column the result is recorded, in the Error column the error that occurred in progress of the action, and in the ExitCode column the number 0 or 1, where 0 - the script was executed successfully, 1 - not successfully.
Example of use
Task
Execute the HELP command - Windows command line help call, get the result into a CSV table.
Solution
Use "Run script command", "Table to CSV" actions.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the parameters for the "Run script command" action.
- Set the parameters for the "Table to CSV" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully.
Generated a table in CSV format with columns:
- Output
- Error
- ExitCode
Обзор
Инструменты контента