Reading Windows Shortcuts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reading Windows Shortcuts

Alex Greber
Hi everybody!
We have to get the "target" string of symlinks. (Windows Shortcuts / .lnk Files)
Any ideas how this is done in VA Smalltalk? We use Windows 7 and VA Smalltalk 8.6.1.
Regards Alex

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Reading Windows Shortcuts

Richard Sargent
Administrator
On Monday, December 1, 2014 1:34:48 AM UTC-8, Alex Greber wrote:
We have to get the "target" string of symlinks. (Windows Shortcuts / .lnk Files)
Any ideas how this is done in VA Smalltalk? We use Windows 7 and VA Smalltalk 8.6.1. 

The authoritative reference is at http://msdn.microsoft.com/en-us/library/aa969393.aspx. Since it requires the use of .COM objects, you should probably refer to Marten Feldtman's work, as he seems to have done a lot of work with .COM stuff.

However, there may be a lighter weight alternative at https://tzworks.net/prototype_page.php?proto_id=11. It may be enough for your needs. Note carefully the statement "we ended up using empirical data to help understand some of the opaque data structure types allowing us to parse the SHLLINK format more fully."  Your mileage will vary, as they say.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Reading Windows Shortcuts

Richard Sargent
Administrator
On Monday, December 1, 2014 8:46:48 AM UTC-8, Richard Sargent wrote:
On Monday, December 1, 2014 1:34:48 AM UTC-8, Alex Greber wrote:
We have to get the "target" string of symlinks. (Windows Shortcuts / .lnk Files)
Any ideas how this is done in VA Smalltalk? We use Windows 7 and VA Smalltalk 8.6.1. 

The authoritative reference is at <a href="http://msdn.microsoft.com/en-us/library/aa969393.aspx" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Faa969393.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHvuNKyt067CzPSZIVhLhrUCCaniw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Faa969393.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHvuNKyt067CzPSZIVhLhrUCCaniw';return true;">http://msdn.microsoft.com/en-us/library/aa969393.aspx. Since it requires the use of .COM objects, you should probably refer to Marten Feldtman's work, as he seems to have done a lot of work with .COM stuff.

However, there may be a lighter weight alternative at <a href="https://tzworks.net/prototype_page.php?proto_id=11" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftzworks.net%2Fprototype_page.php%3Fproto_id%3D11\46sa\75D\46sntz\0751\46usg\75AFQjCNE32q1NsLk6GdPnaa1uME50G9HlMg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftzworks.net%2Fprototype_page.php%3Fproto_id%3D11\46sa\75D\46sntz\0751\46usg\75AFQjCNE32q1NsLk6GdPnaa1uME50G9HlMg';return true;">https://tzworks.net/prototype_page.php?proto_id=11. It may be enough for your needs. Note carefully the statement "we ended up using empirical data to help understand some of the opaque data structure types allowing us to parse the SHLLINK format more fully."  Your mileage will vary, as they say.

There is also a project on GitHub which might be useful: https://github.com/mss/file-shortcut
 

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.