I have different relations with various types of utilities to copy and move files around. For example I absolutely love sync utilities but am puzzled by copy enhancers. Almost same functions but so different paradigms.
Utilities for command line file copy get mixed feelings. On one hand they are relatively complex to use, on other they are a must for advanced usage scenarios.
For all utilities to throw files around in graphical interface there are still some major advantages to command line tools:
- few are always bundled with Windows, which guarantees they are always around and ready to be used;
- they tend to have support for complex and rarely implemented issues – such as preserving meta information in files and scope of user permissions;
- they are designed to be easily integrated in scripts and play well with other software.
Copy is around since MS-DOS times. It is most basic of copy utilities and commonly available everywhere, including specific environments like recovery console.
Pro omnipresent, multiply sources to single destination.
Con primitive, focused at files and not folders.
xcopy (extended copy)
Designed as newer and better copy this one has more features and much more capable. It has set of keys to suppress questions (overwrites), supports skipping over errors and some basic sync-like functions.
Pro commonly present (I couldn’t find exact list of Windows versions).
Con considered deprecated since Vista release.
xxcopy (boldly extended xcopy)
Third party utility that is designed to be more functional and easy replacement to native Windows ones. Hadn’t used this one myself but in seen it in many cases to be suggested and used as drop-in xcopy replacement.
Pro numerous features, easily swapped with xcopy.
Con free only for personal use, has to be copied to system for use.
robocopy (robust file copy)
Bundled with Windows starting with Vista this one aims to replace deprecated xcopy. I guess you see the pattern by now. :)
Robocopy adds advanced options, including precise file selection (separately from source/destination), sync and network support, logging and many more.
There is also Robocopy GUI available that can be used as graphical utility or designer for command line.
Pro extensive set of functions, graphical designer.
Con not bundled with earlier versions of Windows.
Robocopy GUI http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx
Internal (since 2001) Microsoft tool, that was made public this year. Primarily graphical utility it also works from command lines and graphical interface can be used as script designer (see help file for specifics).
App offers most extensive array of settings, giving unmatched control over copy process, and is first to implement multithreaded copy process.
Pro most complex and powerful.
Con despite long in-the-shadows history is bit rough and bleeding edge, overkill for average user.
History of command line file copy utilities spans through many years. While there is certainly no need to be proficient with each and every one – it is good to know their strong and weak sides to be able to choose most adequate and compatible utility for the task.
Angelo R. #
SS64.com – multi-platform command line reference | Rarst.net #