
22 Mar
2008
22 Mar
'08
1:32 p.m.
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
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. Dominic.