How to compare two folders in Win 7 prof 64bit

Anonymous
2010-01-13T19:30:57+00:00

I have two folders which has multiple files. I would like to compare both folders and see which folder has more files and what are their names? How do I do that in Win 7 prof 64bit? Is their any utility that I can download?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2010-11-13T17:55:25+00:00

Hey dude-

Here's the right way to do it, without the external downloads.  It looks like a lot at first, but once you've done it, it's very easy.  It works in all Windows versions from 7 back to 95.  For our example assume that you're comparing two directories named 'A' and 'B'.

  1. run cmd.exe to get a command prompt.  (In Windows 7, the powershell won't work for this, FYI.)  Then do it again, so that you have two of them open next to each other.
  2. in each window go to the directories that you want to compare.  (Using 'cd' commands.  If you're not comfortable with this, then you should probably go with the external utilities, unless you want to learn command prompt stuff.)
  3. type 'dir /b > A.txt' into one window and 'dir /b > B.txt' into the other.  You'll now have two text files that list the contents of each directory.  The /b flag means bare, which strips the directory listing down to file names only.
  4. move B.txt into the same folder as A.txt.
  5. type 'fc A.txt B.txt'.  The command 'fc' means file compare.  This will spit out a list of the differences between the two files, with an extra line of text above and below each difference, so you know where they are.  For more options on how the output is formatted, type 'fc /?' at the prompt.  You can also pipe the differences into another file by using something like 'fc A.txt B.txt > differences.txt'.

Have fun.

Was this answer helpful?

200+ people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2010-01-14T18:43:08+00:00

Gujju dude,

Welcome to Microsoft Answers.

If you hover the pointer over the folder, it will display folder size and file information. If you do not have this activated, go to windows explorer > organize drop down > folder and search options > view > Select the Display file size information in folder tips check box, and then click OK.

I hope this helps.


Lisa

Microsoft Answers Support Engineer

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Was this answer helpful?

60+ people found this answer helpful.
0 comments No comments

84 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-09-16T12:32:18+00:00

    Unfortunately WinDiff will not install on Win7 (it is part of the XP tools) so if you want to experiment, you must use compatibility mode. I don't know why it is not available for Win7

    You can download platform free version from the authors site: http://www.grigsoft.com/download-windiff.htm

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-08-07T12:48:23+00:00

    I have the bad habit of buying external drives, doing a backup of my laptop, and creating a new date labeled folder each time... So on a 1 tb external drive, I'll have many folders, each with a different date backup with essentially mostly redundant files... A real rat's nest of a mess to sort through later!  I found a product called "Beyond Compare" which allows me allows me to quickly compare which sub folders are different, and allows me to drill down into the folders it finds differences... I save those, and delete any folder/file that has not changed...  Maybe I should be embarrassed to to state that I'm a software developer (and a pack rat)...  That said, I  have used this product for ERP upgrades to compare code between releases for years - so it is a very useful tool!  Beyond Compare offers a 30 day free trial - maybe all you would need.. Overall though it is affordable to buy if wanted long term...

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2012-07-03T16:54:45+00:00

    While I agree with JB-Spain about Mickey$oft, I think your fix is great!  I grew up using DOS so I am very comfortable with this.  I have several backups with thousands of files and, believe me, there is no way I am going to try to catch the differences scrolling down side by side screens! 

    Shaking the screen and touching left and right, that's all just bells and whistles.  What we are trying to do here is protect our data - OUR DATA!  All Mickey$oft does is hide how its done.  But we keep paying them to obsolete products WE buy from them when, in fact, we have the power to do it ALL in DOS.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments