471,092 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Creating a .lnk file programmatically

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
4 8592
..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
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
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
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.

Similar topics

5 posts views Thread by Brian McClellan | last post: by
7 posts views Thread by lord.zoltar | last post: by
1 post views Thread by Cramer | last post: by
13 posts views Thread by =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.