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 File Create Folder
📂 File

Create a folder automatically in RunMacro

Create Folder makes a folder at a path, can create parents and skip if it exists, then saves the path to a variable.

Prerequisites

  • Write permission at the destination.

Supported modes

  • Desktop ModeOperates on the local file system.
  • Browser Mode

What it does

The Create Folder command creates a folder at the path you enter. It can also create any missing parent folders, and skip quietly if the folder already exists. The created path is saved to a variable for later steps.

When to use it

  • Prepare an output folder before writing files.
  • Build a folder structure per date/account.
  • Ensure a destination folder exists before copy/move.

When not to use it

  • You only need to write a file — Write Text File can create parents itself.

Configuration steps

  1. Add a File › Create Folder command.
  2. Enter the folder path to create (variables allowed).
  3. Choose whether to create parent folders.
  4. Choose whether to skip if it already exists.
  5. (Optional) Rename the output path variable. Save.

Every option explained

Folder path

Where to create the folder. Supports variables and environment variables.

Create parents

If on, creates any missing parent folders along the path.

Skip if exists

If on, does not error when the folder already exists.

Output variable

Variable that receives the absolute path of the created folder (default last_created_path).

Expected result

The folder exists after running; the output variable holds its absolute path.

Real example

Example: create a dated folder

  1. Create Folder: path D:\Output\{today}, enable Create parents.
  2. Use {last_created_path} as the write location in later steps.

Limitations and failure cases

  • Needs write permission; an invalid path errors and logs a message.

Tips & common mistakes

Enable "Create parents" so you do not have to create each level manually.

Verification details

  • commands/filesystem.py
RunMacro robot

Ready to automate smarter?

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