For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2008 > Re: ΄πΈ΄: is there a way to read content from lnk on windows?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: ΄πΈ΄: is there a way to read content from lnk on windows?
Tom Phoenix

2008-01-25, 7:06 pm

2008/1/25 Chen Yue <godsarmycy@gmail.com>:

> I fully understand this. So I wonder is there a way to get the path that the
> blabla.lnk points to?


You'd think so; symbolic links have a simple implementation on
Unix-like machines. Besides, Windows itself can figure it out. Unless
Microsoft have hidden a key piece of the puzzle from us, we should be
able to do it as well.

Alas, the file format is, it seems, proprietary. Here's a reverse engineering:

http://www.i2s-lab.com/Papers/The_W...File_Format.pdf

To quote from that document:

If you're writing software under Windows I highly recommend you
use the IShellLink interface. For the DOS, Linux, JAVA and other
crowds, this is the document you need, 'cause MS isn't gonna
give you squat.

Somebody should probably make a module for that "IShellLink
interface", and pulling data from the .lnk file format probably
deserves a module of its own. Neither type of module seems to be
available on CPAN yet.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com