![]() Use robocopy – which seems to be the optimal solution.The bad part is that to use it for commercial purposes you are supposed to pay up $20 or more. The good part is that xxcopy implements almost all the regular xcopy switches. This actually worked for me but I’m not entirely happy with this solution. Still, this does not mean that a trigger happy user won’t build a crazy long directory tree in your important folder in the future fix your paths – you can try using virtual drives, junctions and all that jazz to make the source and destination paths shorter.There are essentially 3 workarounds to this: Either that or MS just decided to make “insufficient memory” one of those lovely have a “catch all exceptions and errors here” clauses. ![]() So I’m guessing the message doesn’t really refer to the actual free memory, but to the amount of space left in the file name buffer… Or at least I hope that’s what it means. with path) name of the copied file is longer than 254 characters which seems to be Windows maximum path length. It appears that this message shows up when the fully qualified (ie. Quick google confirmed this – the “insufficient memory” message is very misleading. The folder I was attempting to copy had only 128 MB. The machine had 512 MB of RAM, and over 20 GB of free disk space. After closer inspection of the output I noticed that the last line was: After copying 1 or 2 folders it would simply stop. The script worked fine for almost a year now. Xcopy /E /R /Y /I G:\Important "%HOMEPATH%\My Documents\Important" Rmdir /S /Q "%HOMEPATH%\My Documents\Important" To make the long story short, after several “accidents” with people messing up or deleting files on the server, we figured that letting people to make local mirrors on their own desktops might be slightly better than restoring stuff back from the tape 4 times a day. I have a script which creates a local copy of one of the important folders on the server using the xcopy command. Here is an interesting issue I ran into today.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |