首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >X拷贝与机器人复制的区别

X拷贝与机器人复制的区别
EN

Stack Overflow用户
提问于 2014-06-09 13:09:58
回答 6查看 150.2K关注 0票数 76

我对批处理脚本有点陌生。作为一名新手,我发现这两种方法都很有用,在编写脚本时,x拷贝和机器人拷贝之间的主要区别是什么?

EN

Stack Overflow用户

回答已采纳

发布于 2014-06-09 13:21:18

在新版本的windows中,Robocopy取代了XCopy。

  1. 使用镜像,XCopy不使用
  2. 有一个/RH选项,允许运行副本的设定时间。
  3. 有一个/MON:n选项来检查文件中的差异
  4. 复制比XCopy更多的文件属性

是的,我同意马克·塞切尔的观点,他们都是垃圾。(微软带给你的)

更新:

XCopy返回代码:

代码语言:javascript
运行
复制
0 - Files were copied without error.
1 - No files were found to copy.
2 - The user pressed CTRL+C to terminate xcopy. enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line.
5 - Disk write error occurred.

机器人返回代码:

代码语言:javascript
运行
复制
0 - No errors occurred, and no copying was done. The source and destination directory trees are completely synchronized.
1 - One or more files were copied successfully (that is, new files have arrived).
2 - Some Extra files or directories were detected. No files were copied Examine the output log for details. 
3 - (2+1) Some files were copied. Additional files were present. No failure was encountered.
4 - Some Mismatched files or directories were detected. Examine the output log. Some housekeeping may be needed.
5 - (4+1) Some files were copied. Some files were mismatched. No failure was encountered.
6 - (4+2) Additional files and mismatched files exist. No files were copied and no failures were encountered. This means that the files already exist in the destination directory
7 - (4+1+2) Files were copied, a file mismatch was present, and additional files were present.
8 - Some files or directories could not be copied (copy errors occurred and the retry limit was exceeded). Check these errors further.
16 - Serious error. Robocopy did not copy any files. Either a usage error or an error due to insufficient access privileges on the source or destination directories.

这里有更多关于Robocopy返回值的详细信息:http://ss64.com/nt/robocopy-exit.html

票数 77
EN
查看全部 6 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24121046

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档