Recently, all my attempts to use Xcopy on this particular folder were failing with an 'Insufficient memory' error. On a laptop with 4 GB of RAM! It turns out that XCopy still has a limitation from the DOS era: it can't handle full pathnames (location + filename) that are longer than 256 chars! Blah!
A bit of googling found a possible solution, that turned out to be even more useful than XCOPY, namely Robocopy. This tool is included into Windows Vista. It was originally part of the Windows Server 2003 Resource Kit, but you actually only need the 'robocopy.exe' file, that can be copied onto any Windows NT or Windows XP machine and does not need any installation.
This tool has options that are the same as the ones from XCopy, and thus allows everything that's possible with the latter. But it can also do much more :
- It allows very fine-grained choices of which files to copy, chosen depending on e.g. their attributes;
- It knows about the permissions and security access lists attached to the files;
- It can move the files, instead of simply copying them;
- It can remove files in the destination that are not any more in the source folder ('Mirror' feature).
Nice tool!
No comments:
Post a Comment