Merge directory trees using ROBOCOPY

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”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.