Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

opposite of differ?

Apr
1,794
15
Given that differ compares directories - based on files added, changed, or deleted, how can I make a list of exactly the opposite - files which are the same (exist, not changed, not deleted), between source and target paths... please?
 
If you want to see the result graphically you can pipe a DIR of each directory to a file, and compare both files with a graphical difference tool (I use WinMerge for example).

If you want to see the result in the console, a command such as
Code:
for %f in (a\*) if exist b\%@name[%f] echo %@name[%f]
yields the names common to directories "a" and "b".
 
Back
Top