robocopy.exe d:Sourcepath e:Destpath /E /XC /XN /XO
The command line switches:
/E makes Robocopy recursively copy subdirectories, including empty ones.
/XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those.
/XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those.
/XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those.
With the Changed, Older, and Newer classes excluded, Robocopy will exclude files already existing in the destination directory.
Like this:
Like Loading...
Related
Published by Protiguous
C# Software Developer, SQL Server DBA, Father, and seeker of Truth.
View all posts by Protiguous