I do a lot of torrenting and thus find myself often times having to crosscheck check-sums. I used the FCIV command line tool by Microsoft up until now. Until I discovered that XYplorer can do this too. So I wrote a crude script (not a coder at all) that will calculate the MD5 en SHA1 sums for all the files you have currently selected. Results are neatly displayed in a text box.
If you think you can clean up the code please be my guest! Also I attached a screenshot!
Code: Select all
$a = get("SelectedItemsPathNames",|,a);
$textreport = "";
foreach($file,$a)
{
$checkmd5 = hash("md5",$file,1);
$checksha1 = hash("sha1",$file,1);
$hashedfilename = gettoken($file,-1,\);
$textreport = $textreport . $hashedfilename <crlf>MD5 : . $checkmd5 . <crlf> . "SHA-1 :" . $checksha1 . <crlf> . <crlf>;
}
text $textreport;