Copy a file or folder automatically in RunMacro
Desktop ModeBrowser ModeRunMacro 3.5+
Copy File or Folder copies source to destination with a conflict policy, and saves the resulting path to a variable.
Dialog & quick setup

- Add a File › Copy File or Folder command.
- Enter the source path and destination path.
- Choose a conflict policy: error, skip, overwrite, or unique name.
- (Optional) Enable preserve metadata for files. Save.
Options reference
Modes & when to use
Desktop Mode
Operates on the local file system.
Browser Mode
Best for
- Back up a file before processing.
- Duplicate a template to edit.
- Collect files into a destination folder.
Use an alternative when
- You want to move (not keep the original) — use Move File or Folder.
Before you run
- Source exists; read access to source and write access to destination.
Example workflow
Example: back up a config file
- Copy: source
config.json, destinationbackup\config.json, conflict = overwrite. - Use
{last_copied_path}to confirm.
Expected result: A copy appears at the destination; the output variable holds the destination path.
Tips & limitations
With overwrite, the old destination is replaced. Use "unique name" to keep both.
- Cannot copy a folder into itself.
- Large folders can take time.
Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · Windows 10/11
