robocopy返回值
来源:互联网 发布:淘宝小石头运动 证吗 编辑:程序博客网 时间:2024/05/21 09:30
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 completely synchronized.
如果使用hudson、cruisecontrol之类的软件使用robocopy,由于robocopy正常拷贝下返回值不是0,这些软件都会报错。因此,使用如下语句进行重设置返回值:
if %ERRORLEVEL% LEQ 7 set ERRORLEVEL=0
或者单独设置
if ERRORLEVEL 1 set ERRORLEVEL=0if ERRORLEVEL 2 set ERRORLEVEL=0if ERRORLEVEL 3 set ERRORLEVEL=0 if ERRORLEVEL 5 set ERRORLEVEL=0 if ERRORLEVEL 6 set ERRORLEVEL=0 if ERRORLEVEL 7 set ERRORLEVEL=0
参考文章
http://keer9225.blog.163.com/blog/static/145776083201011249488323/
http://serverfault.com/questions/164753/hudson-copying-files-with-robocopy
- robocopy返回值
- Robocopy返回值
- ROBOCOPY
- Robocopy 用法
- [转载]RoboCopy
- Robocopy 使用方法
- robocopy帮助
- Robocopy用法
- Robocopy用法
- Robocopy用法
- Robocopy和XXCOPY
- robocopy命令行管理
- robocopy和copy
- Robocopy exit codes
- 使用RoboCopy 命令
- 使用RoboCopy 命令
- 使用ROBOCOPY增量备份文件
- 实用工具特别推荐 Robocopy GUI
- flash用XML与java通信
- XFire实现身份验证(基于Xfire SOAP Header的WebService安全验证)
- 我眼中的敏捷实践
- 3,2011.9.1,物料主界面
- 早期作的一款测试板,主要是为了测试二手信利的12864液晶(ks0108)
- robocopy返回值
- 查找单元格字符串中数字部分,并标注红色 (原创)
- 设置Eclipse的workspace路径
- Application, Session, Cookie, Viewstate, Cache对象用法、作用域和区别
- 用Objective-C 实现的简单连连看
- Linux及ARM Linux程序开发笔记(零基础入门篇)2
- 一个通过VBA建立某文件快捷方式的例子 (备注)
- 不知婆婆是什么意思?
- apache2.2服务无法启动 发生服务特定错误:1 的解决办法