By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,645 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,645 IT Pros & Developers. It's quick & easy.

Creating a .lnk file programmatically

P: n/a
Hi all,

How would you go about creating a .lnk file programmatically? I can't seem
to find an appropriate class.

TIA,

John
Nov 15 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
..LNK files are just that, FILES. There is nothing that says you cannot use
the FileStream to save that file type with the correct format. I don't know
specifically what the format is, but it is rather simple. I believe it is a
text file.

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...
Hi all,

How would you go about creating a .lnk file programmatically? I can't seem to find an appropriate class.

TIA,

John

Nov 15 '05 #2

P: n/a
John,
How would you go about creating a .lnk file programmatically?
Here's a sample of one way of doing it.

http://www.msjogren.net/dotnet/eng/s..._shelllink.asp

I can't seem to find an appropriate class.


There's no support for this in the .NET framework, that's probably
why.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 15 '05 #3

P: n/a
Thanks, Peter. I would've thought so, but at least in the simple editors
I've use, a lot of the characters don't appear as simple text.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uP**************@TK2MSFTNGP12.phx.gbl...
.LNK files are just that, FILES. There is nothing that says you cannot use the FileStream to save that file type with the correct format. I don't know specifically what the format is, but it is rather simple. I believe it is a text file.

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...
Hi all,

How would you go about creating a .lnk file programmatically? I can't

seem
to find an appropriate class.

TIA,

John


Nov 15 '05 #4

P: n/a
Thanks, Mattias. I'm looking into it!

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:#5*************@tk2msftngp13.phx.gbl...
John,
How would you go about creating a .lnk file programmatically?


Here's a sample of one way of doing it.

http://www.msjogren.net/dotnet/eng/s..._shelllink.asp

I can't seem to find an appropriate class.


There's no support for this in the .NET framework, that's probably
why.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.