1.

Solve : Compare two folders and ontents.?

Answer»

I have TWO folders on efferent volumes, (Drives).
I am almost sure they are equal. But I need to be absolutely sure.
So the question is, How nan I be really sure that everything in one folder is also found in another folder, even sub directories and files?

I tried the FC command, but COULD not not get it to work. It says it can not file then file I specified.
You are not being clear on what your intended task is.

Are you wanting to compare files to see what their differences are?
Or, do you want to see if two directory structures have the exact same files and folders in it? Quote from: Squashman on February 14, 2012, 08:22:21 PM

You are not being clear on what your intended task is.

Are you wanting to compare files to see what their differences are?
Or, do you want to see if two directory structures have the exact same files and folders in it?
The LATER. I need to know if the two folders and sub-folders a re equal. The contents of both are from a download and I don't have nth check sum information. So I want to compare then two to see if they are equal.If the two directory structures are the same and only the Drive LETTERS are different (C:Source & F:\Source) then you could do this to see if the files exist in each.
Code: [Select]pushd C:\source
FOR /F "tokens=1,2 delims=:" %%G in ('dir /b /s') do (
     IF EXIST "F:%%H" echo file or folder exists in both drives
)WinDiff


Discussion

No Comment Found