Copy MD5 Vale to Clipboard

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Copy MD5 Vale to Clipboard

Post 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

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Copy MD5 Vale to Clipboard

Post by highend »

You need a script to do this:

Code: Select all

copytext hash(, , 1+2);
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Copy MD5 Vale to Clipboard

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Copy MD5 Vale to Clipboard

Post by cldcp00 »

Thanks Guys you help much appreciated

cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Re: Copy MD5 Vale to Clipboard

Post 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

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Copy MD5 Vale to Clipboard

Post 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
One of my scripts helped you out? Please donate via Paypal

Post Reply