[Haskell-cafe] Opening Windows .lnk Files

Neil Mitchell ndmitchell at gmail.com
Sat Mar 22 13:11:06 EDT 2008


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


More information about the Haskell-Cafe mailing list