When copying files with XCOPY, it fails to copy the files and I get the following error:
First of all it’s worth noting that this error does not mean that your computer has insufficient memory to run xcopy.
If you get the insufficient memory error, this is because you have asked XCOPY to copy a file or folder whose file path has more than 255 characters in it. The 255 character file path limit is a limitation of XCOPY and the only solution is to change your file / folder structure or use another file copying program which doesn’t have the 255 character limit, such as Robocopy.
I guess the 255 character limit in XCOPY is a secret, because wouldn’t it have been easier if the error just said that instead of a vague Insufficient memory message?