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 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 Mode — Operates 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.

Screenshots & video#

RunMacro Create Folder command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Create Folder command in RunMacro.

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

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.