XCOPY VS ROBOCOPY – Command Line Tool
XCOPY and ROBOCOPY both are the command line tools for copying multiple files or entire directory trees from one directory location to another and for copying files across a network. XCOPY stands for extended copy and ROBOCOPY means “Robust File Copy“.
XCOPY is included in most versions of Windows and ROBOCOPY is available as part of the Windows Resource Kit starting with Windows NT 4.0. We can say that, ROBOCOPY replaces XCOPY with more switches/options.
XCOPY <source folder location> <destination folder location> switches
XCOPY D:\sourcefolder E:\destinationfolder /s /e /i /h
ROBOCOPY <source folder location> <destination folder location> switches
ROBOCOPY D:\sourcefolder E:\destinationfolder