Action group: Processes
Description
The action executes the set script in the specified interpreter.
Parameter | Description |
---|---|
Interpreter | Interpreter to execute command. |
Script file | The path to the file from the resource containing the script to be executed. |
Arguments | Set of arguments to start the process with. |
Parameter | Description |
---|---|
Completed successfully | A boolean variable that is returned when the process ends. |
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. |
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Interpreter | Interpreter to execute command | Robin.String | Yes | |
Script file | The path to the file from the resource containing the script to be executed. The file has the extension .bat for the CommandLine interpreter or .ps1 for the PowerShell interpreter. | Robin.FilePath | Yes | |
Arguments | Set of arguments to start the process with. | Robin.String | No | |
Results | ||||
Completed successfully | A boolean variable that is returned when the process ends. True - the script was executed successfully, false - not successfully | 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 |
A script may contain several commands that are executed sequentially.
The result of the script execution is written to two variables:
Put the machine in console mode by running the bat-file and take a screenshot.
Запуск робота планируется осуществлять вне RMC (вручную или по локальному расписанию) на удаленной машине, а окно с RDP-соединением пользователь не планирует оставлять в открытом виде, необходимо перевести текущую RDP-сессию в режиме console (консольный режим). В консольном режиме графическая сессия остается активной, но при этом RDP-соединение закрыто и не мешает пользователю. |
(More about console mode: Starting and operating robots in console mode)
Use the "Run script file", "Take screenshot" actions.
The program robot completed successfully. The machine was put in console mode, the screenshot was taken.