Share via

Xcopy insufficient memory return code 4

Anonymous
2012-09-26T01:31:23+00:00

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.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2013-07-23T14:35:59+00:00

    Experience has shown that Xcopy fails with an "insufficient memory" error when the path plus filename is longer than 254 characters.

    7 people found this answer helpful.
    0 comments No comments
  2. 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.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2012-09-26T19:21:24+00:00

    Hi,

    1. What is the amount of RAM installed on the computer?
    2. Do you have enough free disk space on the hard disk to copy the file?
    3. 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:

    http://social.msdn.microsoft.com/Forums/en-US/categories

    0 comments No comments