DocsFileCreate Folder

Create a folder automatically in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

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

Dialog & quick setup

RunMacro Create Folder command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Create Folder command in RunMacro.
  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.

Options reference

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).

Modes & when to use

Desktop Mode

Operates on the local file system.

Browser Mode

Best for

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

Use an alternative when

  • You only need to write a file — Write Text File can create parents itself.
Before you run
  • Write permission at the destination.

Example workflow

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.
Expected result: The folder exists after running; the output variable holds its absolute path.

Tips & limitations

Enable "Create parents" so you do not have to create each level manually.
  • Needs write permission; an invalid path errors and logs a message.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11

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.