In Windows XP I write xcopy Y:\Updates\Instructions %userprofile%\desktop /e /c /y /z and gives an error. In Windows 10, everything works. I think he takes the second way as a parameter.

    1 answer 1

    The% userprofile% variable probably includes spaces. Try enclosing the target object in brackets:

     Y:\Updates\Instructions "%userprofile%\desktop" /e /c /y /z 
    • Already figured out, the problem was exactly that. - aaa