Robocopy: ERROR 5 (0x00000005)

I have faced this Robocopy error many times:

2010/03/20 11:48:37 ERROR 5 (0x00000005) Copying File C:\Foobar.pdf
Access is denied.
Waiting 30 seconds...

The reasons for this error are many and the fixes depends on the reasons:

  1. Check if the destination disk is full.
  2. Try the /COPY:DT option. By default, Robocopy copies using the option /COPY:DAT. This copies the Data, Attributes and Timestamps. /COPY:DT ignores the Attributes.

6 responses

  1. Yep, It worked…
    Strange enough, the first part of my files to copy was copying correctly, and the second part was giving me this error.
    Using the /COPY:DT parameter did the job!

  2. Thanks a million, helped me out big time.

  3. Great its work like a magic

  4. If you changed it from “DAT to DT” wouldnt that make the command “ALWAYS COPY” the data regaurdless if it has been changed or not?

    1. Chris: That is correct. I was doing a one-way copying with that command.

  5. Thanks a lot!

    Using /COPY:DT it worked.

    Funny that it was working before without it….

    Thanks again,


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 112 other followers

%d bloggers like this: