Skip to content

Open App

Type: open-app  ·  Package: Desktop Activities v1.0.0  ·  Output: number

Launches an application or Windows process. It is usually the first step of a desktop automation: open the program that you are going to automate. Returns the PID (process identifier). You can optionally wait for the process to finish before continuing.

Runs the path program, optionally with arguments (args) and a working directory (workingDir). By default, it continues the flow immediately (no waiting). If you put waitForExit = true, the flow stops until the process finishes (useful for command line tools).

After opening the app, a Win Attach usually follows to connect to your window.

ParameterEditorDescription
pathexpressionPath to the executable or command to launch. Ex: C:/ERP/erp.exe.
ParameterEditorDescription
argsexpressionCommand line arguments.
workingDirexpressionWork directory. By default, that of the executable.
waitForExitbooleanWait for the process to finish before continuing. By default false.
timeoutexpressionMaximum waiting time in ms if waitForExit = true. 0 = no limit.

Returns a number with the PID of the launched process.

Open App path = "C:/ERP/erp.exe" → output: pid
Win Attach selector = (ventana "ERP — Login")
└─ body:
... automatizar el ERP ...
  • Win Attach — connect to the open app window.
  • Win Close — close the application when finished.