Skip to content

Copy, Move or Rename

  • Action
  • Files

Copies, moves or renames a file, or a folder with everything in it. When the destination is a folder that exists, the item goes into it and keeps its name; Rename gives it a new name where it is. Continues on Missing when the file or folder isn't there.

The Copy, Move or Rename step in the MacroWin editor
Each new screenshot saved on the desktop moves into Pictures\Screenshots, so the desktop stays clear.

Example

Rename as you move: Operation Move and Destination ${folder.documents}\Invoices\invoice ${date.today}.pdf files today's invoice under a name with the date.

Variations

  • Keep the original where it is: Operation Copy.
  • A new name in the same folder: Operation Rename and a New name.
  • Make the folder first: Create Folder.
  • Every file of a folder: List Files, then For Each.

Settings

SettingStarts asWhat it does
File or folder * ${} empty
Operation Copy Choices: Copy, Move, Rename.
Destination ${} empty A file path, a new folder path, or a folder that exists.
New name ${} empty Only the name, such as report-final.pdf. The file or folder stays where it is.
Replace existing files Off For a folder, files that are already in the destination are replaced.

Settings marked ${} take variables. * is required.

Where it continues

  • Out when it's done.
  • Missing when the file or folder doesn't exist.

Outputs

Copy, Move or Rename outputs
New pathThe copy's path, or where the file or folder is after a move or rename.

Limits

When a file of that name is already there, it stops and says so, unless Replace existing files is on.

More in Files: Decrypt File, Delete File, Edit Image

Build macros with Copy, Move or Rename in MacroWin. Free to download, no account needed. Windows 10 and 11.

Download