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

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
- Add a Code › Run .BAT File command.
- Choose the path to the
.batfile. - Save. On run, it is executed via cmd.
Every option explained
Real example
Example: run a cleanup script
- Run .BAT File pointing to
C:\Scripts\clean.bat. - The script runs your cleanup commands.
Tips & common mistakes
Only run .bat files you trust — batch can perform powerful system actions.
RunMacro