DocsFileRename File or Folder

Rename File/Folder Command Reference (Single Path)

Desktop ModeBrowser ModeRunMacro 3.5+

Rename File or Folder gives an item a new name in place, with a conflict policy, and saves the new path to a variable.

Dialog & quick setup

RunMacro Rename File or Folder command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Rename File or Folder command in RunMacro.
  1. Add a File › Rename File or Folder command.
  2. Enter the source path (the file/folder to rename).
  3. Enter the new name (name only, no path).
  4. Choose a conflict policy. Save.

Options reference

Source path

The file or folder to rename.

New name

A plain name (no / or backslash). Supports variables.

Conflict policy

error, skip, overwrite, or unique_name.

Output variable

Variable that receives the path after renaming (default last_renamed_path).

Modes & when to use

Desktop Mode

Operates on the local file system.

Browser Mode

Best for

  • Standardize an output file name.
  • Rename by a variable (order id, date...).
  • Quickly fix a folder name.

Use an alternative when

  • You want to rename many files at once — use Batch Rename Files.
Before you run
  • Source exists; write access in its containing folder.

Example workflow

Example: rename by order id

  1. Rename: source {result_file}, new name {order_id}.pdf.
Expected result: The item has the new name in the same folder; the output variable holds the new path.

Tips & limitations

The new name is a name, not a path. To move to another folder, use Move File or Folder.
  • The new name cannot contain path separators.

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.