Retrieve Meta for LNK - how?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Retrieve Meta for LNK - how?

Post by SkyFrontier »

Hello people.

How can I retrieve the meta info from lnk files? Mainly, the full path (name+path) as Meta pane displays it?
I just keep getting "<item not found: ...lnk>" messages, even if the item exists at final destination.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Retrieve Meta for LNK - how?

Post by bdeshi »

Code: Select all

 $itm = <curitem>; //ze item
 if (gpc($itm,'ext') == 'lnk'){$itm = property('#ShortcutTarget', $itm);}
 echo $itm;
??
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Retrieve Meta for LNK - how?

Post by SkyFrontier »

It worked, thanks!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply