Run Program
Run an executable.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Program | String | Yes | The name to the executable file. |
Arguments | String | No | The command-line parameters for the executable file. |
Working Directory | String | No | The path of the program to be executed. |
Window | Selector | Yes | The window style of the program during execution. |
Wait for completion | Boolean (check box) | No | Wait for the program to shutdown. This option will cause the Automation Manager Policy to pause until the execution of the specified program is completed before continuing on to the next Automation Manager Object. |
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | If wait for completion is checked then this is the exit code of the program otherwise it is zero. |
ProcessID | Number | The process ID number of the program during execution. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Program |
String |
Yes |
C:\Program Files\CCleaner\CCleaner.exe |
Arguments |
String |
No |
/AUTO |
Working Directory |
String |
No |
<intentionally left blank> |
Window |
Selector |
Yes |
Hidden |
Wait for completion |
Boolean |
No |
Selecting From Designer will cause any Policies that use this Object to fail if the Policy is run from N-able N-central. |