[Haskell-cafe] Opening Windows .lnk Files

Dominic Steinitz dominic.steinitz at blueyonder.co.uk
Sat Mar 22 13:32:38 EDT 2008

Neil Mitchell wrote:
> Hi
> Drop into the command line, rename the file from foo.lnk to foo.txt,
> using "ren foo.lnk foo.txt", then open "foo.txt". It's a chunk of
> binary goop, so will likely not be much use.
> There is a COM class for editing shortcut files (IShellLink), which
> I've used before from C code. See
> http://darcs.haskell.org/hugs98/src/winhugs/installer/ShellCode.cpp,
> in particular the CreateShortcut function.
> Thanks
> Neil

Thanks but following a discussion on #haskell, it's all beginning to 
sound a bit hard. Somehow I thought it would be easy. I know where the 
real files are so I'll just set a directory as a parameter, strip off 
the .lnk from the name and use that + the directory to manipulate them.


More information about the Haskell-Cafe mailing list