PDA

View Full Version : Batch File .md5 question


pmonk
2005-04-03, 08:06 PM
I use was using this batch file to create .md5 signatures

@echo off
%~d1 & cd "%~1"
md5sum *.flac > "%~n1.md5"
exit

For some reason it creates two files for verification on the last track?

Checking rtf1983-04-02.dmow.sbeok.md5 (11 files):
checking rtf1983-04-02d1t01.flac: OK
checking rtf1983-04-02d1t02.flac: OK
checking rtf1983-04-02d1t03.flac: OK
checking rtf1983-04-02d1t04.flac: OK
checking rtf1983-04-02d1t05.flac: OK
checking rtf1983-04-02d2t01.flac: OK
checking rtf1983-04-02d2t02.flac: OK
checking rtf1983-04-02d2t03.flac: OK
checking rtf1983-04-02d2t04.flac: OK
checking rtf1983-04-02d2t05.flac: OK
checking rtf1983-04-02d2t05.flac: OK
rtf1983-04-02.dmow.sbeok.md5: All 11 files OK

Summary: All 11 files OK
Press any key to continue . . .

Yes - I use TLH but sometimes I like to use other methods!

Any help would be nice!

**Cough uhclem cough** :wave:

uhclem
2005-04-03, 09:18 PM
for %%F in (*.flac) do md5sum *.flac > "%~n1".md5 "%%F"

The above line is wrong. Change it to:

md5sum *.flac > "%~n1.md5"

pmonk
2005-04-04, 06:41 AM
Thank you - now it works!

uhclem
2005-04-04, 10:52 AM
:D :thumbsup