Robocopy, Error 2, Accessing Destination Directory and The System cannot find the file specified

Isn’t IT fun?

You use a tool and while it normally works you stumble upon an issue which you cannot explain.

While doing some Robocopy jobs (with Robocopy 2008) I stumbled upon the following error:

Error 2 (0x00000002) Accessing Destination Directory TheSourceDirectory The System cannot find the file specified

and

Error 3 (0x0000003) Copying File TheSourceDirectory The System cannot find the file specified

Source and Target are accessible by the job, exploerer doesn’t show any issues when copying the data, the directory contains sometime a .DS_Store file (haven’t checked all directories).

Solution:

Using Robocopy from a 2003 Server.

IT, fun as always.

4 thoughts on “Robocopy, Error 2, Accessing Destination Directory and The System cannot find the file specified

  1. I recently ran into this issue myself, and I discovered that the error 2 issue was related to an invisible stream named :AFP_AfpInfo. Using the /NODCOPY parameter on robocopy overcame this issue. The source file system was a Synology share, and it creates this index file which is used for Macs who connect to the share.

    Like

    • Using WINDOWS 10, I struggled with the same problem, wanting to copy a single large file only. ALL these options didn’t make a difference. Out of desperation, I used the command as:
      ROBOCOPY c:\myfiles R:\destfiles thisfileonly.txt*
      No switches. NO PROBLEM!!! The difference: ADDING AN ASTERISK at the end of the file to enable a wild-card situation. Eventually! Hope this helps someone out there!!

      Liked by 1 person

Leave a comment