I want to compare two folders on Windows (Vista, XP) which have a large number of huge files, which I need to compare. If I use Beyond Compare or such tool to compare the folders, it is taking a lot of time if I do it manually. I need to add that folder comparison to batch file.
So on Windows (XP, Vista), is there any command (built-in) or any 3rd party tool/utility (commercial or freeware – either) to compare two folders using the command line.
There is the built in command
COMPthat you could use. It depends a little bit on what you actually want to compare.Use a syntax like
COMP c:\folder1 c:\folder2to compare all files infolder1with the content offolder2. If you need to recurse into the subdirectories, you need to use a batch script using aFORloop and thePUSHDandPOPDcommand.Just leave a comment, if you need help with that.