The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    File Comparison by Hash Check?

    Discussion in 'Windows OS and Software' started by HTWingNut, Apr 2, 2017.

  1. HTWingNut

    HTWingNut Potato

    Reputations:
    21,580
    Messages:
    35,370
    Likes Received:
    9,877
    Trophy Points:
    931
    I will be copying a LOT of files to new hard drives (about 2TB worth and over 50,000 files). I want to do a hash file check of all the files, and want it automated so that it compares the hashes of every file and tells me which ones are different so I can confirm that the file wasn't corrupted in the process.

    Anyone know of a simple utility to accomplish this?

    Thanks.
     
    DR650SE likes this.
  2. topenzz

    topenzz Notebook Geek

    Reputations:
    24
    Messages:
    99
    Likes Received:
    54
    Trophy Points:
    26
    If you have Windows 10, you can download Bash on Windows 10. Then you can use md5deep and md5sum commands from Bash. You can even automate the whole process with a batch script and little coding.

    Alternatively, download md5deep (the zip file). Extract the content. Then you
    1. Add the extracted path to the Windows environment variable
    2. OR drop md5deep.exe or md5deep64.exe in C:\Windows\System32.
    3. OR Have to type the full path of the folder when you need to use the command.

    Open cmd and point to the folder that contains all the files. Then run this command:

    Code:
    md5deep -r -l .
    Or if you want the output in a text file (it will be in the root folder)

    Code:
    md5deep -r -l . > md5sum.txt
    Do it for the original folder and the copied folder then compare the content of the 2 text files. You can compare the content online or find a command for that with a google search.



    The bash way is way easier IMO you only need to run:

    Code:
    md5deep -r -l . > md5sum.txt
    Copy md5sum.txt to the folder you need to compare. Then run this command and it will tell you every file that is not matching.

    Code:
    md5sum -c md5sum.txt
     
    Last edited: Apr 3, 2017
    HTWingNut and alexhawker like this.