Skip to main content

Launch Application

Launch/start/run an external application or program from a specified file path and capture its process ID.

Category: Desktop Application Automation · Group: General · Activity name: LaunchApplication

The LaunchApplication activity in the designer

Example

outputVariable = LaunchApplication("<fullPath>", arguments="<arguments>", workingDirectory="<workingDirectory>", runAsAdmin=True)

Inputs

NameTypeRequiredDefaultDescription
Full PathstringYesThe complete file path to the executable or application to launch (e.g., 'C:\Program Files\App\app.exe' or '/usr/bin/app'). On Windows you can also use an App Paths short name registered in the registry like 'winword', 'code', or 'notepad'.
ArgumentsstringOptional command-line arguments passed to the application.
Working DirectorystringOptional working directory for the launched application. Leave empty to use the application's own directory.
Run As AdministratorbooleanElevates the application with administrator privileges (prompts the user via UAC).

Outputs

NameTypeDescription
outputVariablestringThe name of the variable where the launched process ID (PID) will be stored for tracking and management. The PID can be used to