Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Flow Open File / App
📄 Flow

Automatically open a file or app in RunMacro

The Open File command launches an app, opens a document or a path — like double-clicking it.

Prerequisites#

  • Add Open File / App to the macro.
  • Prepare the data or target that Open File / App will use.

Supported modes#

  • RunMacro Runner

What it does#

The Open File command launches an app, opens a document or a path — like double-clicking it. It can pass command-line arguments and run as Administrator.

Screenshots & video#

RunMacro Open File / App command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Open File / App command in RunMacro.

When to use it#

  • Open an app to work with at the start of a workflow (e.g. Notepad, Chrome).
  • Open a document/data file to process.
  • Run a program with command-line arguments.

When not to use it#

  • Do not use Open File when application readiness must be confirmed; add a window or state check after launch.

Configuration steps#

  1. Add a Flow › Open File / App command.
  2. Enter the path to the file/app (e.g. notepad.exe).
  3. (Optional) enter arguments and enable run as Admin.
  4. Add a Wait afterward so the app can open. Save.

Every option explained#

File path#

The path to the app, document, or file to open.

Arguments#

Command-line arguments passed to the program (if needed).

Run as Admin#

Enable to open with Administrator rights (some apps require it).

Expected result#

After execution, Open File / App completes the described action and makes its result available to the next step.

Real example#

Example: open Notepad then type#

  1. Open File with notepad.exe.
  2. Wait 1000ms for Notepad to open.
  3. Type Text the desired content.

Limitations and failure cases#

  • A successful launch does not mean the program is ready; file associations, arguments, permissions, and UAC are Windows-dependent.

Tips & common mistakes#

Always add a Wait after opening so the app is ready before the next step.
Run as Admin may show a UAC prompt that needs manual confirmation.

Verification details#

  • commands/control_flow.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.