Search code examples
windowsteamcitywebdeployrobocopy

Getting ERROR 5 (0x00000005) Creating Destination Directory while using robocopy to copy files


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.


Solution

  • Is this to and from ntfs partitions?

    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.

    You could also try using the /COPY:DT parameter, by default robocopy copies the data, attributes and timestamp /COPY:DT will skip the attributes.

    Also check your share permissions as well as your ntfs permissions