我使用Robocopy.exe执行了几个任务,在其中一个任务上,我得到了一个错误结果0X3,但是日志文件没有显示任何错误。以下是命令:
ROBOCOPY \\X\L$\FORMATION \\Y\O$\FORMATION /MIR /sec /W:2 /R:5 /log:c:\O_journal.log我试着在没有任务调度器的情况下启动它,它运行得很好,没有蚂蚁错误。
我知道错误0X3是:ERROR_PATH_NOT_FOUND.But日志文件不显示任何错误。
如果有人有任何线索或方法..。
发布于 2017-09-11 10:14:52
这是一种标准行为,与Robocopy的退出代码相关:
0×00 0 No errors occurred, and no copying was done.
The source and destination directory trees are completely synchronized.
0×01 1 One or more files were copied successfully (that is, new files have arrived).
0×02 2 Some Extra files or directories were detected. No files were copied
Examine the output log for details.
0×04 4 Some Mismatched files or directories were detected.
Examine the output log. Housekeeping might be required.
0×08 8 Some files or directories could not be copied
(copy errors occurred and the retry limit was exceeded).
Check these errors further.
0×10 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.以及它们的组合,即:0x03 = 0x02 + 0x01
有关完整的解释,请参见https://blogs.technet.microsoft.com/deploymentguys/2008/06/16/robocopy-exit-codes/。
发布于 2016-06-29 05:48:29
这是机器人复制脚本上配置的路径的一个问题。我通过将根目录或主驱动器添加到源和目的地来解决这个问题。
注意:请确保您是两个服务器(源和目的地)的管理员。
示例:
资料来源:“192.168.1.2\e$\my files”。 目的地:“\192.168.1.5\d$\备份”
我提到的根目录或主驱动器是"e$“和"d$”,如上面所示。如果这不包括在脚本中,您将在调度程序中遇到"0X3“错误,调度程序将无法工作。
注意:这个脚本是将文件从源同步/复制到目标。
使用的参数。/MIR /E /Z /R:5 /W:5
这就是脚本作为一个整体的样子:
robocopy "\\\192.168.1.2\e$\my files" "\\\192.168.1.5\d$\backup" /MIR /E /Z /R:5 /W:5希望这能帮上忙。
谢谢。
西安
https://stackoverflow.com/questions/26633645
复制相似问题