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
  • 103
  • 1
  • 7

1 Answers1

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
  • 14,313
  • 3
  • 27
  • 41