大网数据广告活动
备份与恢复

Return codes used by the Robocopy utility

· 52CE 我爱测

Discusses the return codes that are used by the Robocopy utility in Windows Server 2008 or Windows Server 2008 R2.

This article discusses the return codes that are used by the Robocopy utility in Windows Server 2008 or Windows Server 2008 R2.

Original KB number:   954404

Introduction

The following table lists and describes the return codes that are used by the Robocopy utility.

Value Description
0 No files were copied. No failure was met. No files were mismatched. The files already exist in the destination directory; so the copy operation was skipped.
1 All files were copied successfully.
2 There are some additional files in the destination directory that aren't present in the source directory. No files were copied.
3 Some files were copied. Additional files were present. No failure was met.
5 Some files were copied. Some files were mismatched. No failure was met.
6 Additional files and mismatched files exist. No files were copied and no failures were met. Which means that the files already exist in the destination directory.
7 Files were copied, a file mismatch was present, and additional files were present.
8 Several files didn't copy.

Note: Any value greater than or equal to 8 indicates that there was at least one failure during the copy operation.

More information

For more information about how to use the Robocopy utility, open a command prompt, type the following command, and then press ENTER:
Robocopy /?

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。