Page 1 of 1
How to get destination paths of .lnk?
Posted: 04 Nov 2011 18:01
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.
Re: How to get destination paths of .lnk?
Posted: 07 Nov 2011 11:10
by admin
Right-click a LNK file, then use submenu Shortcut Target.
Re: How to get destination paths of .lnk?
Posted: 07 Nov 2011 15:40
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...???