Experience has shown that Xcopy fails with an "insufficient memory" error when the path plus filename is longer than 254 characters.
Xcopy insufficient memory return code 4
When I do an xcopy in a batch script, I get the return code of 4 Insufficient Memory?
It has been working great for about 2 years now.
I am running Windows XP Home Edition.
Help..Please
Windows for home | Previous Windows versions | Performance and system failures
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
3 answers
Sort by: Most helpful
-
Anonymous
2013-07-23T14:35:59+00:00 -
Anonymous
2016-11-22T19:27:22+00:00 Thank you very much. I was going down thee memory path never thinking is was a file name/path name problem. I was able to track down and fix my problem. When creating my xcopy script, the script in error copied everything to the wrong subdirectory creating a path/file name greater than 254 bytes.
-
Anonymous
2012-09-26T19:21:24+00:00 Hi,
- What is the amount of RAM installed on the computer?
- Do you have enough free disk space on the hard disk to copy the file?
- Have you made any recent changes to the computer?
Reply us with more information to help you.
Or you may post your question in the following forum: