The “Robust File Copy for Windows” is more useful than XCOPY, with fewer side effects. Useful for merging directory trees (union), e.g. photo backups.
robocopy "F:\My Pictures" ".\home\photo" /E /XN /XF Thumbs.db
- /E Copy recursively, including empty directories
- /XN Exclude copy of newer files (if you don’t trust/care about timestamps)
- /XF Thumbs.db Exclude files named
Thumbs.db, produced by Windows
0 Responses to “Merge directory trees using ROBOCOPY”