| 1. |
Solve : Compare two folders and ontents.? |
|
Answer» I have TWO folders on efferent volumes, (Drives). You are not being clear on what your intended task is.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 |
|