"Copy Shortcut Target Item" doesn't work with unicode files

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
physics-teacher

"Copy Shortcut Target Item" doesn't work with unicode files

Post by physics-teacher »

Hello,

just registered for this problem only.

"Shortcut Target" -> none of the following three commands work IF shortcut filename and or original file of shortcut includes unicode characters.

XYplorer returns with "This shortcut has no target to copy" or "... to go".

I'm running XP Prof SP3 in Japanese.

Would be very happy about a quick bug fixing.

Thank you
Michael

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by admin »

Hi and welcome to the club,

yes, that was on my list for years. And, tada, I finally managed to make it work! :cup:

So, thanks for the kick,

Don

physics-teacher

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by physics-teacher »

Hello Don,

thank you very much for your ultra quick bug fixing.

Can't wait to download the latest working release.

Bye
Michael

physics-teacher

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by physics-teacher »

Hello Don,

thank you, finally i works.

BUT this function seems to be for -one file only-.

Could I ask you one more time?
It would be a very fine function if every original file of a bunch of selected shortcuts could be copied.

Michael

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by admin »

What if not all of the selected items are shortcuts?

physics-teacher

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by physics-teacher »

They are all shortcuts.

It works not even for two shortcuts.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by admin »

I meant: How should the app behave if also non-shortcuts are among the selections. It's a question to all.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by Marco »

AFAICS, the function works on the selected and focused item, which seems to be less-than-standard behaviour for a multiple selection.
I think the "Link Target" menu should be available only when all selected items are links. Or, differently, greyed out when at least one item is not a link.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by admin »

I could live with this: only process the LNKs among the selections, ignore the others.

physics-teacher

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by physics-teacher »

Well, for non-shortcuts ... maybe the app could just ignore them and process all the others.

For Marco's greyed out option, the function wouldn't work at all in this case.
The function should do at least what it can do. This is what I would expect.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by TheQwerty »

If this is made to copy the data for all selected shortcuts (even if other items are selected) then shouldn't the same be done for these commands?

File | To Clipboard | Compact File Info
File | To Clipboard | Extended File Info
File | To Clipboard | Large Icon
File | To Clipboard | Small Icon
File | To Clipboard | Text
File | To Clipboard | Image

Which then begs the question how do you copy multiple images/icons? :eh:


To be frank, I'm not convinced this should be changed because:
1) The current behavior makes the most sense without having odd exceptions. (Microsoft's own Pin to * commands also only work on the current item.)
2) The desired behavior can be achieved easily enough through scripting:

Code: Select all

::CopyText FormatList(Report("{Prop:#ShortcutTarget}<crlf>", 1), 'e', <crlf>);

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by admin »

Too late. I changed it, and I think it can be useful.

BTW, I doubt that scripting is "easily enough" for the majority of my users.

physics-teacher

Re: "Copy Shortcut Target Item" doesn't work with unicode fi

Post by physics-teacher »

Thank you Don for you good job, works all very fine for me now.

Post Reply