How to get destination paths of .lnk?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

How to get destination paths of .lnk?

Post by tiago »

I thought .lnk could be resolved by resolvepath but they're not?
Any alternative way to achieve this?

The same may be valid for perhaps symbolic links, junction folders and hard links.
Power-hungry user!!!

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

Re: How to get destination paths of .lnk?

Post by admin »

Right-click a LNK file, then use submenu Shortcut Target.

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: How to get destination paths of .lnk?

Post by tiago »

I need to obtain the destination of those files in the scope of a script, that's why I was expecting resolvepath() to be of help here.

My current solution is #1046; (go to shortcut location) then testing the existence of <curitem>, but it is very unpleasant to see all those locations opening and closing. Dangerous, maybe.

A further improvement would be a script solution to fix dead links who don't pass in a exist() test. Any ideas...???
Power-hungry user!!!

Post Reply