← All text tools

Robocopy Command Builder

Choose source, destination and options and get a Windows robocopy command with an explanation of each switch, exit codes and a warning about the MIR option.

  • Free
  • No sign-up
  • Works on any device

About Robocopy Command Builder

Robocopy is the robust copy program built into Windows, with dozens of switches. This builder writes the command from plain choices: source and destination, which files, whether to copy subfolders with /E or /S, mirror with /MIR or move with /MOVE, restartable mode, retries and wait time, multithreading, file and folder exclusions, a log file and a dry run with /L. Every switch is explained in a table together with the exit codes, where values below 8 mean success. Paths with spaces are quoted and trailing backslashes are removed. The /MIR option deletes files in the destination, and the page says so.

How to use Robocopy Command Builder

  1. Type the source and destination folders and choose what to copy.
  2. Set retries, threads, exclusions and the log file, and tick the dry run option first.
  3. Copy the command into Command Prompt or PowerShell, check the preview and then run it without /L.

Why use this tool?

Also known as

Frequently asked questions

What does /MIR really do?

It makes the destination an exact copy of the source, which includes deleting files there that do not exist in the source. A swapped source and destination can wipe the wrong folder, so always test with /L first.

Why are retries and wait time set by default?

The built-in defaults are 1 million retries 30 seconds apart, so one locked file can stall a job for a very long time. Three retries 5 seconds apart are a sensible start.

What does exit code 1 or 3 mean?

1 means files were copied successfully and 3 means files were copied and extra files exist in the destination. Codes below 8 are not failures; 8 or more means some files could not be copied.

Is Robocopy Command Builder free?

Yes. Robocopy Command Builder on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.