2008/1/25 Chen Yue <[EMAIL PROTECTED]>: > 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_Windows_Shortcut_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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/