Xcopy error "insufficient memory" - found a work around with XXCOPY
So I have a few users setup with daily backups using a bat file as referenced in
http://www.ctunion.com/node/35
So I noticed not all the user’s data was being copied, only half the data was being copied. So I ran the command from the bat file in a dos prompt:
xcopy "c:\Documents and Settings\user\My Documents" "d:\backup" /e /c /y /d
and it is setup to copy only files that have been modified with /d switch
I noticed after it copied some files that have changed it gave an "insufficient memory" error
I ran the same command again and it copied no files and returned the "insufficient memory" error again.
So after some Google searching I found there is a limitation of 254 characters in the fully qualified file name which is the driver letter, full directory path and file name. The My Documents folder in my case had multiple folders inside of folders inside of folders. After reaching a fully qualified name over 254 the xcopy stopped and reports the error.
I also found that there is a great program very similar to xcopy called XXCOPY which does NOT have the character limitation but uses the same switches and formatting.
So all I have to do was download and install XXCOPY from the site. I ran the same command as before except this time using xxcopy and BAM it worked like a champ. No more insufficient memory error and all the users’ files copied
http://www.xxcopy.com/index.htm
I added an extra X to all my lines in the batch files. I actually used the replace feature in notepad and replaced the word “xcopy” with “xxcopy”. This was such a time saver!!!


Recent comments
51 weeks 6 days ago
1 year 10 weeks ago
1 year 10 weeks ago
1 year 15 weeks ago
1 year 21 weeks ago
1 year 24 weeks ago
1 year 36 weeks ago
1 year 36 weeks ago
1 year 36 weeks ago
1 year 51 weeks ago