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 Move File or Folder
➡ File

Move a file or folder automatically in RunMacro

Move File or Folder relocates source to destination (leaving the old spot), with a conflict policy, and saves the final path to a variable.

Prerequisites

  • Source exists; write access at both source and destination.

Supported modes

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

What it does

The Move File or Folder command relocates content from a source to a destination (the original no longer stays in place). You choose how to handle an existing destination. The final path is saved to a variable.

When to use it

  • Sort processed files into a "done" folder.
  • Relocate an output file.
  • Consolidate and move data between folders.

When not to use it

  • You want to keep the original — use Copy File or Folder.

Configuration steps

  1. Add a File › Move File or Folder command.
  2. Enter the source path and destination path.
  3. Choose a conflict policy. Save.

Every option explained

Source path

The file or folder to move.

Destination path

Where to move to. If the destination is a folder, the item is placed inside using its original name.

Conflict policy

error, skip, overwrite, or unique_name.

Output variable

Variable that receives the final path after moving (default last_moved_path).

Expected result

Content appears at the destination and is gone from the source; the output variable holds the final path.

Real example

Example: move a processed file

  1. Move: source {current_file}, destination done\, conflict = unique name.

Limitations and failure cases

  • Cannot move a folder into itself.

Tips & common mistakes

Moving does not keep the original. Verify the destination before running in bulk.

Verification details

  • commands/filesystem.py
RunMacro robot

Ready to automate smarter?

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