1.

Solve : File Compare for entire directory tree??

Answer»

Wondering if anyone know of any tricks to compare an entire directory tree using FC file compare or an alternate method at the BINARY compare level such as FC /B

Using a wild card such as:

FC C:\test\*.* C:\test2\*.* /B

Will only compare all files at the root of C:\test with C:\test2, it wont go deeper unless I add an INSTRUCTION to perform a second file compare statement such as:

FC C:\test\*.* C:\test2\*.* /B
FC C:\test\data\*.* C:\test2\data\*.* /B

To manually point out to go deeper into the tree for every sub directory... When only a few sub directories its not bad, but when multiple in root of and sub directories branched off of that, it adds to making a rather bulky BATCH.... anyone know of any tricks to compare entire trees?

Thankswhen you want to compare the trees you want to compare every file in each tree to another. or do you want to compare the folders themselves.would something like this work...?

CODE: [Select]
dir c:\test /S>test.txt
dir c:\test2 /S>test2.txt
FC test1.txt test2.txt /B

FBHey this worked after fixing typo of text.txt to text1.txt to match file compare instruction after write of dir output of c:\text to text1.txt.


dir c:\test /S>test1.txt
dir c:\test2 /S>test2.txt
FC test1.txt test2.txt /B
pause

Solution suggested by Fireballs works pretty GOOD.. is there a way to strip the data down and summarize the output to show say the info below? ( if there was mismatch at binary level with these 2 files )

Files Mismatched:

project1.doc
sales2.xls



Discussion

No Comment Found