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.