本文介绍了XCOPY和使用Robocopy的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一种新的批量脚本。
作为一个新手,我发现虽然脚本都他们都有益
什么是XCOPY和的Robocopy之间的主要区别?

I'm kind of new to batch scripting.As a newbie I find both both of them useful while scriptingWhat are the key differences between xcopy and robocopy?

推荐答案

的Robocopy取代的XCopy在Windows的新版本。

Robocopy replaces XCopy in the newer versions of windows


  1. 使用镜像下,xcopy不

  2. 拥有/ RH选项,以允许在设定的时间为副本运行

  3. 拥有/ MON:n选项来检查文件之间的差异

  4. 将在比的XCopy多个文件属性

是的,我同意马克·瑟特查,他们都是废话。 (由微软赞助商)

Yes i agree with Mark Setchell, They are both crap. (brought to you by Microsoft)

更新:

的XCopy回报codeS:

XCopy return codes:

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.

的Robocopy返回codeS:

Robocopy returns codes:

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返回值更多的细节在这里:

There is more details on Robocopy return values here: http://ss64.com/nt/robocopy-exit.html

这篇关于XCOPY和使用Robocopy的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-25 02:17