473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 8765
..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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Paul | last post by:
Hi all Arggghhh........... The problem.....I want the user to be able to create an excel document and name particular cells in the document where they want the data to be placed and then save...
6
by: Null Reference | last post by:
Anybody here who can explain or point me to a link ? I wish to create a blank MS Access DB file programmatically using C# . Thanks, nfs
5
by: Brian McClellan | last post by:
Just wondering if anyone has a simple example of creating a gridview completely programmatically, i'm not doing anything terribly sophisticated. When creating the gridview declaratively evertying...
1
by: iwdu15 | last post by:
hi, i want to be able to create a file extension programmatically (like .abc will open my app), but all gogole searches came up with VB code in VB5 or earlier....which used API calls that i couldnt...
0
by: Salem | last post by:
hi, i need to programmatically get the wsdl file of a certain web service to create the corresponding proxy on the fly. knowing the service i want to use, how can i get its wsdl file and create the...
7
by: lord.zoltar | last post by:
I have a problem which I think can be solved by creating new Settings on the fly, but I'mnot sure if it's possible, or if a better solution may exists. Here's the situation: I have a project with...
9
by: Joe Penora | last post by:
Hi All, How to add the HTML script when creating new ASPX page. After it is done I may need to add some Meta tags etc... but the html script is not there. Is there an option in the ASP.NET...
1
by: Cramer | last post by:
According to the MSDN docs, we cannot programatically create our own themes or skins: "Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly....
13
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am not accustomed to creating xml files programmatically. The big picture is this: This will be in VB/VS 2005/ winforms. I have a DTD, a sample XML, and an outside data source I will use to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.