in reply to problem executing xcopy

This is OT, and also please RTFM.

In particular, the following answers your question:

Specifying whether Destination is a file or directory

If Destination does not contain an existing directory and does not end with a backslash (\), the following message appears: 
....

     "For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken