Thread: md5 Problems
View Single Post
  #2  
Old 2005-02-21, 10:32 AM
uhclem
 
Re: md5 Problems

The problem is you have spaces in your md5 files names. The command line is totally braindead when it comes to spaces and other special characters such as & , > < etc.

put quotes around the %f like this:

for %f in (*.md5) do c:\windows\system32\md5sum.exe --check "%f"

Furthermore, this command-line 'verifies' an md5 checksum, it doesn't 'generate' one.

If you want to get fancy, put it all into a batch file using code like this:

@echo off
%~d1 & cd "%~s1"
for %%F in (*.md5) do md5sum --check "%%F"
pause


Save it in a text file but with a .bat extension. Then just drag and drop the folder containing your audio files and md5s straight onto the batch file.

Note that you must use double % in a batch file 'for' command, but not on the command line. You also can leave out the path to your md5sum.exe program (as well as the .exe) since it appears to be in your system path.

Last edited by uhclem; 2005-02-21 at 10:38 AM.
Reply With Quote Reply with Nested Quotes