Windows command line tool to print MD5 hashes of files in specified directory. Also works for a single file.
- Current directory is used by default
- File name and size are also displayed by default
/b
(bare) switch is available to list MD5 hashes only. Files are still processed in Alphabetical order (case ignored).
Displays MD5 hashes of files in a directory.
MD5.PL [drive:][path] [/b]
[drive:][path]
Specifies drive and/or directory or file to process.
The current directory is processed by default.
/b Bare format (prints only MD5 hash).
/? Print this help.
C:\path>md5
61dfff7c01b77af512143b41d8a3bc51 - md5.exe (8421778)
1d7b4f1b079c17cc17c5e2a627000c17 - md5.ico (4286)
bf8a9a706ef8896896ad36729a9e41a1 - md5.pl (3258)
C:\path>md5 /b
61dfff7c01b77af512143b41d8a3bc51
1d7b4f1b079c17cc17c5e2a627000c17
bf8a9a706ef8896896ad36729a9e41a1
C:\path>md5 \d*.*
C:\
DumpStack.log skipped: Permission denied
DumpStack.log.tmp skipped: Permission denied
Pack to .exe
file with PAR::Packer:
pp -o md5.exe md5.pl
- Recursively process subdirectories (
/s
) - Quiet mode (
/q
) - do not print failed attempts (ex.: no access rights to a file) - Flexible/configurable output (templates: MD5 hash, file name, file size, directory name, directory path)
- Handle "no permission" directories
- Add tests!
2021-12-04
- Tidied up internals.
Previously
- Added processing of a single file