windows 使用 robocopy 复制文件时出现错误 5 (0x00000005) 创建目标目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6732542/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Getting ERROR 5 (0x00000005) Creating Destination Directory while using robocopy to copy files
提问by sam
I am getting the above error while I am using robocopy command. I have given all possible permissions on both source and destination folders but still I am getting this error. Any idea how to fix this.
我在使用 robocopy 命令时收到上述错误。我已经为源文件夹和目标文件夹授予了所有可能的权限,但仍然出现此错误。知道如何解决这个问题。
回答by Phil Eddies
Is this to and from ntfs partitions?
这是往返 ntfs 分区吗?
If you are coping to FAT of EXT then add the /FFT parameter to assume FAT file times (2 second granularity) ext2/ext3 also uses 2 second granularity.
如果您要处理 EXT 的 FAT,则添加 /FFT 参数以假设 FAT 文件时间(2 秒粒度)ext2/ext3 也使用 2 秒粒度。
You could also try using the /COPY:DT parameter, by default robocopy copies the data, attributes and timestamp /COPY:DT will skip the attributes.
您也可以尝试使用 /COPY:DT 参数,默认情况下 robocopy 复制数据、属性和时间戳 /COPY:DT 将跳过属性。
Also check your share permissions as well as your ntfs permissions
还要检查您的共享权限以及您的 ntfs 权限