Thanks, that was just what I was looking for. I have noticed that the IPersistFile.Load method throws a COM exception (E_FAIL) if the file is not a shell link, I wonder if that is an acceptable test for shell link or not!?!
- Henrik -----Original Message----- From: Mattias Sjögren [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Monday, April 22, 2002 1:31 AM To: [EMAIL PROTECTED] Subject: Re: Shell links / shortcut files (*.lnk) Henrik, >Does anyone know of a sample showing how to do this? http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp <http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp> I think you have to hardcode that the .lnk extension is for shortcuts. Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com <http://discuss.develop.com> . You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.