Checksum utility wanted

S

S'fly

I'm looking for a checksum utility that can

- calculate md5 checksums
- look for files in all included subdirectories as well as in the
current directory (recursive)
- save the output in a md5 or txt format, but .... it must save the
output for every subdirectory in its own directory!
- run from the command line (well, this is no must but a preference)

I'm used to use SlavaSoft's FSUM utility, but it saves the output only
to the main directory.

Or maybe it can be achieved with a (simple) DOS command? I'm no expert
but any help is welcome. :)

Thanks in advance,
 
B

Ben

I'm looking for a checksum utility that can
- calculate md5 checksums
- look for files in all included subdirectories as well as in the
current directory (recursive)
- save the output in a md5 or txt format, but .... it must save the
output for every subdirectory in its own directory!
- run from the command line (well, this is no must but a preference)

RapidCRC will do everything above except run from the command line.
Does provide a nice shell extension to work through things quickly.
Only limitation as such is that the checksum file is created with the
same name for every subdirectory, rather than with the directory name
which I would prefer. You didn't specify that though, so maybe it won't
bother you :)

http://rapidcrc.sourceforge.net/

I'm used to use SlavaSoft's FSUM utility, but it saves the output only
to the main directory.

Or maybe it can be achieved with a (simple) DOS command? I'm no expert
but any help is welcome. :)

It should be easy enough to achieve on the commandline if you want to
stick with FSUM - you don't specify your OS though. 2K/XP have a lot
more functionality for producing batch files to do things like this - if
you'd rather use FSUM, let me know your OS and I'll try and whip
something up.

HTH

Ben
 
S

S'fly

Ben said:
Only limitation as such is that the checksum file is created with the
same name for every subdirectory, rather than with the directory name
which I would prefer. You didn't specify that though, so maybe it won't
bother you :)

Yes, I thought of that to be honest, but there are so many "rename-
utilities" out there, that changing the names afterwards from the same
name to the directory name shouldn't be that difficult. :)

Will check this one out, thanks.
It should be easy enough to achieve on the commandline if you want to
stick with FSUM - you don't specify your OS though. 2K/XP have a lot
more functionality for producing batch files to do things like this - if
you'd rather use FSUM, let me know your OS and I'll try and whip
something up.

Oh yes, I prefer FSUM without any doubt. I'm using XP (and also JPSoft's
4NT, for what its worth). So ... be my guest! :)
 
B

Ben

Oh yes, I prefer FSUM without any doubt. I'm using XP (and also JPSoft's
4NT, for what its worth). So ... be my guest! :)

(Apologies for shuffling the order of your post)

Quick hack version - from the command line (case sensitive, single line
- rejoin if wrapped)

for /R . %J in (*) do fsum -jm -jnc "%~fpJ" | find /v "*****" >> "%
~dpJchecksum.md5"

Translation - for every directory from the current directory downwards,
recurse through files running fsum against every file in MD5 sum mode
and suppressing comments. Skip the line containing "DENIED" when FSum
attempts to checksum the file being created in the following step and
pipe the output to the file checksum.md5 in each directory.

Limitations - >> is intended to add to a file - if checksum.md5 already
exists, it will append the results of the command to the file. If you
wanted to make a batch file for this, you could use del /s *.md5 to
clear out the checksums first - or just run it manually.

If you do use it in a batch file, you need to double up on the % signs
(apologies if I'm teaching my grandmother to suck the proverbial eggs.)

It could be improved a lot with some checking for if checksum files
already exist and prompting you to delete etc, but it would start to get
clunky...
Yes, I thought of that to be honest, but there are so many "rename-
utilities" out there, that changing the names afterwards from the same
name to the directory name shouldn't be that difficult. :)

The batch command I keep around in my top level directory and use to
correct the names after running RapidCRC is :

for /D %%I in (*) do ren "%%~fI\checksum.md5" "%%~I.md5"

This will rename all files found called checksum.md5 to the directory
name instead. If you want to run it from the console directly, you want
single % signs not double.

Hope this helps :)

Ben
 
G

Gerard Bok

I'm looking for a checksum utility that can

- calculate md5 checksums
- look for files in all included subdirectories as well as in the
current directory (recursive)
- save the output in a md5 or txt format, but .... it must save the
output for every subdirectory in its own directory!
- run from the command line (well, this is no must but a preference)

I'm used to use SlavaSoft's FSUM utility, but it saves the output only
to the main directory.

Or maybe it can be achieved with a (simple) DOS command? I'm no expert
but any help is welcome. :)


How about md5summer.com ?
Not sure about the command line though :)
 
S

S'fly

Ben said:
for /R . %J in (*) do fsum -jm -jnc "%~fpJ" | find /v "*****" >> "%
~dpJchecksum.md5"

Hmm, I had to make some small changes to make it work here:

for /R %J in (*) do fsum -jm -jnc "%J" >> "checksum.md5"

This one works like a charm. :)
for /D %%I in (*) do ren "%%~fI\checksum.md5" "%%~I.md5"

This one I can't get to work though (the single % signs version neither).
I've tried all possible modifications, but with no luck.

But anyway, you've helped me a lot already!
 
S

safesurfer

I'm looking for a checksum utility that can

- calculate md5 checksums
- look for files in all included subdirectories as well as in the
current directory (recursive)
- save the output in a md5 or txt format, but .... it must save the
output for every subdirectory in its own directory!
- run from the command line (well, this is no must but a preference)

I'm used to use SlavaSoft's FSUM utility, but it saves the output only
to the main directory.

Or maybe it can be achieved with a (simple) DOS command? I'm no expert
but any help is welcome. :)

Thanks in advance,
How about Karen Kenworthy's Hasher
http://www.karenware.com/powertools/pthasher.asp
 
S

S'fly

wrote:
How about Karen Kenworthy's Hasher

Well, who knows. :)

The suggested solution (fsum with some prompt commands) works well though.
But thanks for the thinking! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top