> setlocal
>
> unset /q *
> : makes b-debugging clear with an empty environment
> bdebugger /ne
>
> set NixFileTXT=UbuntuHashes.txt
> : you will need to be in the same folder as this file
> : pushd "Where Ever The TXT file is"
>
> select /o:-d echo (*) >>filespec
>
> do r=0 to %@lines[filespec]
>
> set md5hash=%@md5[f,%@line[filespec,%r]]
> set uhash=%@line[%nixfiletxt,%r]
>
> :: assuming from your post the filename and hashvalue are on the same line
> :: word0 will be the iso filename, word1 will be the hash value
>
> IFF %md5hash EQ %@word[1,%uhash] THEN
> echo Matched
> ELSE
> echo Not Matched
> ENDIFF
> enddo
> del /kq filespec
> : popd
> endlocal
>
> ----- Original Message -----
> From: "drrob1" <>
> To: <
[email protected]>
> Sent: Sunday, February 07, 2010 5:44 PM
> Subject: RE: [Support-t-1716] hash function question
>
>
>
>
> ---Quote---
>> An example would make this clearer
>> I have this file, we'll call it UbuntuHashes.txt. The contents are thus:
>>
>> ubuntu-9.10-desktop-amd64.iso
>> dc51c1d7e3e173dcab4e0b9ad2be2bbf
>> ubuntu-9.10-desktop-i386.iso
>> 8790491bfa9d00f283ed9dd2d77b3906
> ---End Quote---
>
>
> ---Quote---
>> One thing puzzles me though. The help file says that @getfile has been
>> replaced by the more powerful @getfolder. But I don't want a
>> foldername, I want a filename. I am also confused by the line that not
>> all folders are directories, as I use the term interchangably.
> ---End Quote---
> Stay with @getfile the help doc is a little vague in places some anti aging
> gel might fix that.