Create a list of file names, sizes and MD5 hashes
search cancel

Create a list of file names, sizes and MD5 hashes


Article ID: 179370


Updated On:


Symantec Products




You wish to create a list of file names, sizes and MD5 hashes –perhaps because you were asked to do so for the verification of uploaded data.

One way to achieve this is using the following procedure:

  1. Download and install and (for 64-bit Windows clients), or and (for 32-bit Windows clients).
  2. Add the following to the bottom of the Macros section in %AppData%\Notepad++\shortcuts.xml and save the file:

    <Macro name="HashMyFiles" Ctrl="no" Alt="no" Shift="no" Key="0">
     <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
     <Action type="3" message="1601" wParam="0" lParam="0" sParam="(.*)\t(.*)\t(.*)\t\r\n" />
     <Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
     <Action type="3" message="1602" wParam="0" lParam="0" sParam="File: $1\r\nMD5:  $2\r\nSize: $3\r\n\r\n" />
     <Action type="3" message="1702" wParam="0" lParam="512" sParam="" />
     <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />

  3. Open HashMyFiles.
  4. In the Options menu, select Hash Types and disable all but MD5, then select Enable Explorer Context Menu.
  5. In the View menu, select Choose columns. Untick all but Filename, MD5 and File Size.
  6. Close HashMyFiles.
  7. In Windows Explorer, select one or more files, then right-click them and select HashMyFiles.
  8. In the HashMyFiles window, select everything and press Ctrl-C to copy its content.
  9. Open Notepad++. In a new tab,  press Ctrl-V to paste the copied content.
  10. Press Ctrl-A to select all of the tab's content, then select HashMyFiles in the Macro menu to produce output similar to the following:

    MD5:  c594a2f95342f33d704caf125005e295
    Size: 89,387,422

    MD5:  0fdb3eb664e40eef63d5a8d816a4dd82
    Size: 65,642,077

    File: Procmon_Trace.7z
    MD5:  edabcf6015f861191a4c61f3260ea5b5
    Size: 10,516,345

Any new file list can be created by performing steps 7 through 10 only.