go ahead... be a heretic | |
PerlMonks |
Re: Calc md5 for file by drag and drop (Windows)by fizbin (Chaplain) |
on Oct 18, 2005 at 07:22 UTC ( [id://500899]=note: print w/replies, xml ) | Need Help?? |
A nice enhancement of this would be to see if the current Clipboard text matched /^\s*[a-f\d]{32}\s*$/i and, if so, popping up a nice MsgBox saying whether the file dropped had the same md5 as what was in the clipboard. Or something more elaborate, such as parsing the clipboard text for stuff that looks like: (Or whatever format is used by the md5 program all the cool kids are using these days) And then forming relative filenames so that one just has to copy a chunk of MD5 statements like the above, and drag one of the files in the directory over onto the icon. Note that another fine use of the script as-is is to drop a shortcut to it in one's SendTo folder in the %USERPROFILE% directory, or added to the context menu of every file by loading a registry file such as:
Update: I've now gone and investigated the output of various md5 utilities, and have this to report:
Hopefully, covering that mess will cover all that's needed.
--
In Section
Cool Uses for Perl
|
|