Recursively compare file identities in Windows environment using only standard Windows commandline tools

0

I want to ensure that deep directories of files are identical after copying.

I've read this answer: https://superuser.com/a/414216/214579

However, neither fc or comp offer recursion. How would one implement recursive testing in a pure windows environment.

This answer strongly indicates that robocopy is probably very very useful: https://superuser.com/a/748518/214579

Samuel Russell

Posted 2014-06-17T05:28:28.120

Reputation: 103

1I second the notion about robocopy. Take a closer look at it, it can do the trick. ;-) – TheUser1024 – 2014-06-17T06:21:41.197

Answers

1

Yes, you can and should use Robocopy for that.

robocopy c:\folder1 c:\folder2 \mir

Will make sure that both folders are identical including subfolders. It will also remove files that have been deleted.

There are lots of other options too including being able to watch folders for changes, retry if files are locked and so on.

Julian Knight

Posted 2014-06-17T05:28:28.120

Reputation: 13 389