Automation Action – Run A Program | ThinkAutomation

Automation Action: Run A Program

Execute a Windows executable file and assign the output to a variable.

Execute any Windows program or command with optional parameters. The Output of the program can be assigned to a variable.

Enter the Program Or Command To Run and any Parameters. You can use %fieldname% replacements in both entries.

Run Via

This option defines which process runs the program:

  1. Run Via: Message Processor Service

The Message Processor service itself runs the program. You can optionally specify user Credentials that the program should execute as.

  1. Run Via: ThinkAutomation Studio Or Desktop Connector On Behalf Of The Message Processor Service

The message processor service sends a request to the ThinkAutomation Studio or Desktop Connector to start the program on it’s behalf. The Studio/Desktop Connector executes the program and sends the results back to the message processor.

You also have the option to specify a ThinkAutomation User Name if you want the program to be executed by a specific logged in Studio/Desktop connector user (for example a user running the Studio on a remote machine). If no user is specified then the process will be executed by the first running instance of the Studio/Desktop connector.

This option can be used in instances where the program you want to run needs to execute under the security context of the logged in Windows user rather than under the security context of a running service. For example, you may have an AutoIt script that interacts with the user’s desktop applications. However for this to work the ThinkAutomation Studio or Desktop Connector applications must be running when the Automation executes.

Redirect Output

Select the Redirect Output if you want to receive the output of the program. The output can then be assigned to a variable selected from the Assign Output To list.

Wait For Exit

Select the Wait For Exit option if you want ThinkAutomation to wait for the program to complete before continuing with the remaining actions on the Automation. You can also specify a Wait Max in milliseconds.

This is one action from over 180 actions included with ThinkAutomation. The ThinkAutomation business process automation (BPA) solution is designed to automate on-premises and cloud-based business processes that are triggered from incoming messages. Automate messages received by email, database updates, webhooks, web forms, web chat, SMS messages, Twitter, Teams messages, documents, local files and other messages sources. Create any number of workflow automations using the drag-and-drop low-code designer. Simple fixed pricing, with unlimited message processing reduces overall costs compared to hosted automation solutions.

You can also extend ThinkAutomation by creating your own custom automation actions using the built-in designer and C#/VB.net code editor.

Download Free 30 Day Trial

Back To Automation Actions List

ThinkAutomation Home