IShellLink extension allows to retrieve the path or target of a shortcut and create new shortcuts anywhere.
More in depth, IShellLink extension is providing IShellLink COM interface inside MMF. This interface allows to get and set various Shell link parameters, and allows to load and save to shell link file (usually ended with LNK extension).
This extension has been developed for MMF 2 mainly but should work in CF 2.5.
This extension is released under Apache License, Version 2.
Nice work! Do you think in future versions support can be added for symbolic links, junctions, hardlinks, etc. or is that outside the scope of this object?
Ouly, si toutes tes extensions marchent sous Fusion 2.5
Tu peux nous les suggérer pour qu'elles apparaissent dans l'Extension Manager
Thanks LB! It would be interesting to have an extension allowing to handle symbolic links and so on. But I'm not sure if this extension is the right place. Everything is about linking entry and data, but Shell link is more specifically a specific file format where the others belong to the file system. This also means that a Shell link can be handled on a file system and/or an operating system not supporting Shell link (because it would just mean doing some data processing inside the extension), where the others will only work in some specific context (for example they won't work at all on FAT32).
Originally Posted by LB
In my opinion, it would be better to create a new dedicated extension for symbolic links, directory junctions and hard links.
J'ai bien commandé Fusion 2.5, mais je ne l'ai pas encore installé (pas eu le temps mais cela va venir). Donc, le temps d'installer le tout, de tester le bon fonctionnement des extensions et je les posterai ensuite dans l'Extension Manager :)
Originally Posted by Nico
How exactly do I find the 'Target Path' of an existing shortcut using this? I can't find any way to do it. Cheers
Originally Posted by ouly
Target path can be found using the expression Get Raw Path.
Checking the extension today, I just realized that the extension struggles to read files for which user has got only read access. I don't remember why exactly I have put STGM_READWRITE instead of STGM_READ but, basically, for you it means that you might need to copy the shortcut somewhere else (like in the temporary folder) before playing with it, either systematically or if the extension returns an Access Denied error code.