[OT] Md5 Checker.

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

[OT] Md5 Checker.

Post by *sas2000 »

 
Hi, i'm looking for a program to check .md5 files, it should manage them as Tc does, but on command line mode (to be able to use it on batch files) and it must generate errorlevel exit codes.

Do you know any program with these capabilities ?, thanks. Sas.
 
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

Hmm i don't know if they are supporting error level output,
but here are a few tools i know (from my store, don't know if they are available anymore ):

ReHash
ReichlSoft Hash Calculator
Version: 1.0.1, Build: Apr 12 2003 11:34:59 - Windows
Free console-based hash calculator.
Download latest version from http://www.xxxxxxxvu.
EDIT: http://www.dominik-reichl.de/opensource.shtml#rehash

md5sums
MD5sums is win32 command line software to generate MD5 hashes of files
(with progress indicator)
Author: Jem Berkes, SysDesign [ http://www.sysdesign.ca/ ]
MD5sums 1.2 freeware for Win9x/ME/NT/2000/XP+
Copyright (C) 2001-2005 Jem Berkes - http://www.pc-tools.net/
EDIT: http://www.pc-tools.net/win32/md5sums/

fsum
fsum Version 2.51 ReadMe File July 2004
(C) Copyright 1999-2004 SlavaSoft Inc.
EDIT: http://www.slavasoft.com/fsum/

fsum
http://www.fastsum.com/

hashf
no further info


I know there was an another one... but i can't remember right now
Last edited by RID500 on 2006-12-23, 15:07 UTC, edited 1 time in total.
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

Found at http://www.kronos-titan.privat.t-online.de/md5/md5.html

The MD5.exe from fourmilab supports error level output:

Code: Select all

@echo off
md5.exe -c%1 %2
IF ERRORLEVEL 1 GOTO NOTOK
IF ERRORLEVEL 0 GOTO ISOK

:ISOK
echo MD5-Number is OK.
GOTO ENDE

:NOTOK
echo MD5-Number is NOT OK.
GOTO ENDE

:ENDE
PAUSE
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
Thanks :) , i knew them all except Rehash, the only one with exit codes is "MD5 2.0 Command Line Message Digest" as you point out, but this program AFAIK doesn't work with .md5 files, it only compares individual files with a Md5 hash.
 

Code: Select all

md5.exe -c449763d7bbc4e5f5d1b8004fd0b69321 press.doc
Thx, Sas.
 
User avatar
RID500
Member
Member
Posts: 194
Joined: 2006-11-20, 12:38 UTC

Post by *RID500 »

How about the FOR command?

Code: Select all

:_START
FOR /F tokens=1 %%i  IN (.MD5) DO CALL :SUB %%i 
goto :EOF 

:SUB
MD5.exe -c%1
If EL ...
If EL ...
:FIN

I have less experience with this but Mr. Google should knew this better.

For an start see
http://www.ss64.com/nt/for_f.html


- - -
http://groups.google.de/group/alt.msdos.batch.nt/browse_thread/thread/2f3a04263548c1c0/88674e93e66de198?

Code: Select all

for /f "tokens=1" %%a in ('type .MD5') do (
MD5.exe -c%%a
IF EL ...
IF EL...
 ) 
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
I'll try it, thx :D , Sas.
 
Post Reply