Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Code Run .BAT File
⚙️ Code

Run a .BAT (batch) file in RunMacro

What it does

The Run .BAT File command executes a Windows batch (.bat) file. Use it to run system commands or existing scripts within your workflow.

When to use it

  • Run an existing .bat to clean up/start a service.
  • Call Windows system commands in a workflow.
  • Integrate existing command-line tools.

Configuration steps

  1. Add a Code › Run .BAT File command.
  2. Choose the path to the .bat file.
  3. Save. On run, it is executed via cmd.

Every option explained

File path (.bat)

The batch file to run; the working directory is the file location.

Real example

Example: run a cleanup script

  1. Run .BAT File pointing to C:\Scripts\clean.bat.
  2. The script runs your cleanup commands.

Tips & common mistakes

Only run .bat files you trust — batch can perform powerful system actions.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.