Recursive MD5 checksum utility

MD5dir is a script I wrote to recursively calculate, check and update "md5sum" files. It detects ID3 tags on .mp3 files. It is written in Python 2.4, and I uploaded the source code to Snipplr. The help for the options is at the top.
renamed files, and can ignore


For output, it prints for each file "ADDED", "CHANGED" (or "UPDATED" if you specif y --update), "RENAMED", "DELETED", or "CONFIRMED" (if verbose is on).

To use it effectively under Windows, first place the file in the "Scripts" directory of your Python installation, then create a batch script like the following somewhere in your path:
@echo off
C:\Python25\python.exe C:\Python25\Scripts\md5dir.py %1 %2 %3 %4 %5 %7 %8 %9
To access it from the right-click context menu in Windows Explorer, create a registry file with the following (e.g. "mp3md5.reg") and click it add these keys to the registry:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\md5dir]
@="&Directory MD5 checksum"
[HKEY_CLASSES_ROOT\Directory\shell\md5dir\command]
@="cmd.exe /K C:\\Python25\\python.exe \"C:\\Python25\\Scripts\\md5dir.py\" ."

Popular posts from this blog

Cutting down on clutter with the Outbox Method

A comparison of file synchronisation software