Page 1 of 1

Copy MD5 Vale to Clipboard

Posted: 27 Jun 2019 00:50
by cldcp00
Hi There,

Could somebody help me please?

I need to copy just the MD5 value of the selected file to the Clipboard.

how can this be done

Thanks in advance

Desmond

Re: Copy MD5 Vale to Clipboard

Posted: 27 Jun 2019 07:22
by highend
You need a script to do this:

Code: Select all

copytext hash(, , 1+2);

Re: Copy MD5 Vale to Clipboard

Posted: 27 Jun 2019 07:32
by bdeshi
Well, there's an option at Menu > Files > To Clipboard that copies file md5 and a handful of other info.

You wan to copy only the MD5. Create a User-Defined Command aka UDC.

1. Click Menu > User > Manage Commands. The UDC editor window opens.
2. Select "Run Script" from the category pane at left.
3. Then press the INS/Insert key on the keyboard. Or, click the "New..." button at right, and select "Add New Command"
Now, look at the bottom half of the window.
5. At the "Caption" field, type Copy MD5
6. At the "Script" field, type this: if (exists(<curitem>) == 1) { copytext hash('MD5',,1); }
The command is saved. You can assign it a keyboard shortcut too with the relevant button below.
7. Press "OK" to save and close.

Now select a file, then pick Menu > User > Run Script > Copy MD5. Or press the keyboard shortcut you've assigned to the command.

This will only work with files obviously, folders cannot have MD5. If multiple items are selected, only the first item's hash will be copied.

Alternatively, when you have multiple items selected, enter this in the addressbar: hashlist 'md5';. This will pop up a text block of md5 hashes and item full paths, that you can copy.

Re: Copy MD5 Vale to Clipboard

Posted: 27 Jun 2019 17:27
by cldcp00
Thanks Guys you help much appreciated

Re: Copy MD5 Vale to Clipboard

Posted: 28 Jun 2019 01:25
by cldcp00
highend wrote: ↑27 Jun 2019 07:22 You need a script to do this:

Code: Select all

copytext hash(, , 1+2);
Hi HighEnd

Could I kindly ask for the script to copy ONLY the files name to the clipboard.

Kind Regards

Desmond

Re: Copy MD5 Vale to Clipboard

Posted: 28 Jun 2019 06:10
by highend
Only the file name(s) without path?
copytext <get SelectedItemsNames <crlf>>;

or including paths?
copytext <get SelectedItemsPathNames <crlf>>;

Both variants have a keyboard shortcut
ctrl+shift+p / ctrl+p