robocopy返回值

Robocopy 的返回值是一个位图,不同的返回值代表不同类型的错误或状态。例如,0×10 表示严重错误,可能由使用错误或权限不足引起;0×08 意味着复制过程中发生错误且超过重试限制。当使用 Hudson 或 CruiseControl 等软件时,非零返回值可能导致错误报告。解决方法是通过设置语句将错误级别重置为0,如 `%ERRORLEVEL% LEQ 7 set ERRORLEVEL=0`。参考链接提供了更多相关信息。
摘要由CSDN通过智能技术生成

Robocopy Errorlevel Return Codes (found in robocopy.doc)

The return code from Robocopy is a bit map, defined as follows:

0×10 Serious error. Robocopy did not copy any files. This is either a usage error or an error due to insufficient access privileges on the source or destination directories.
0×08 Some files or directories could not be copied (copy errors occurred and the retry limit was exceeded). Check these errors further.
0×04 Some Mismatched files or directories were detected. Examine the output log. Housekeeping is probably necessary.
0×02 Some Extra files or directories were detected. Examine the output log. Some housekeeping may be needed.
0×01 One or more files were copied successfully (that is, new files have arrived).
0×00 No errors occurred, and no copying was done. The source and destination directory trees are compl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值