robocopy — Basic UsageIT technician command center
Windows CMD · Windows Command Line

robocopy — Basic Usage

Use robocopy for a standard administrative task.

Copy-ready commandrobocopy — Basic Usage
robocopy C:\Source D:\Backup /MIR /R:2 /W:5 /LOG:backup.log
Production warning

Review destructive switches before running commands that modify files or services.

Requirements and permissions

Requirements
Windows 10/11 or Windows Server
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use robocopy for a standard administrative task.

robocopy C:\Source D:\Backup /MIR /R:2 /W:5 /LOG:backup.log

Original command

Copy and synchronize directory trees.

robocopy C:\Source D:\Backup /MIR /R:2 /W:5 /LOG:backup.log

Common errors

Command not found

Confirm Windows 10/11 or Windows Server is installed and available in your current shell.