I'm not sure, but isn't the problem that you have swapped the two arguments of dircopy?
In reply to Re: Copy a directory on windows by ambrus in thread SOLVED:Copy a directory on windows by phoenix9