Skip to content
QKQuickKit日本語
WindowsLOCALRuns in your browserInput may contain sensitive information

Robocopy Command Builder

Build a bounded, reviewable Robocopy command locally without copying files.

This tool handles input and primary processing in your browser and is designed not to send the input to QuickKit’s server.

Avoid live production secrets; use dummy or masked data where possible. Data handling details

Generated command

How it works

Builds a Robocopy command only. It never starts a copy. Dry-run (/L) is enabled by default. Mirror (/MIR) can delete destination files, so it needs explicit confirmation. When you run the command, read the exit code with Microsoft's rule: 0–7 means no failure, 8 or higher means at least one failure (see the table below).

Exit codes (%ERRORLEVEL%)

Any value from 0 to 7 means the run finished without failures; 8 or higher means at least one file or directory could not be copied. A script or scheduled task that treats every non-zero code as failure will flag successful copies, so test for 8 and above instead: cmd IF %ERRORLEVEL% GEQ 8, PowerShell if ($LASTEXITCODE -ge 8). The values are the ones Microsoft documents; their own rows show they add up (3 = 1 + 2, 5 = 1 + 4, 7 = 1 + 2 + 4), so a mismatch contributes 4 — a derivation from those rows, not a value the reference lists on its own.

ValueMeaning
0No files were copied. No failure was encountered. No files were mismatched. The files already exist in the destination, so the copy was skipped.
1All files were copied successfully.
2Extra files are present in the destination that are not in the source. No files were copied.
3Some files were copied. Extra files were present. No failure was encountered.
5Some files were copied. Some files were mismatched. No failure was encountered.
6Extra files and mismatched files exist. No files were copied and no failures were encountered.
7Files were copied, a file mismatch was present, and extra files were present.
8Several files did not copy. Any value of 8 or higher indicates at least one failure.

Values and the 8-or-higher rule are those documented on Microsoft Learn: the robocopy command reference (ms.date 2025-03-17) and the return-codes article for KB 954404 (ms.date 2026-02-12). Neither lists 4 or 16 individually, so this table does not either.