473,594 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a .lnk file programmaticall y

Hi all,

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

TIA,

John
Nov 15 '05 #1
4 8785
..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******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:OW******** ******@TK2MSFTN GP11.phx.gbl...
Hi all,

How would you go about creating a .lnk file programmaticall y? 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 programmaticall y?
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.r illing.net> wrote in message
news:uP******** ******@TK2MSFTN GP12.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******@YETAN OTHERSPAMHATERc-comld.com> wrote in message
news:OW******** ******@TK2MSFTN GP11.phx.gbl...
Hi all,

How would you go about creating a .lnk file programmaticall y? 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.o rg> wrote in message
news:#5******** *****@tk2msftng p13.phx.gbl...
John,
How would you go about creating a .lnk file programmaticall y?


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
8879
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 this out of an XML file or Excel Template file. Next I need to convert a dataset to xml and try and transform this data into the users xml file..........i've seen a few things on this but havent had much success...
6
13440
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
15303
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 works fine, however programmatically, while the grid will display data that exsists in the database, any operation on the data ( editing/updating/deleting ) seems to cause a rowdeleting/updating etc error. Or is this simply not meant to be done?
1
1444
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 decipher. The microsoft web page also wasnt helpful because the information i was looking for was cut off...does anyone know how to do this in .net? thanks -- -iwdu15
0
1113
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 proxy programmatically. anybody??? thanks
7
3303
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 many different dataGridViews to display data, and many of them have 10-20 columns (the actual number of displayed columns is user/client controlled, and in a couple cases could be ~30). The client would like to be able to resize the columns...
9
5986
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 that WHEN creating a new aspx page, then it will generate that basic HTML scrip as well. Regards,
1
1782
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. These classes are used by the ASP.NET parser and runtime ... " (from http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx). My question: Is there really no way that we can programmatically create our own themes and have ASP.NET...
13
1952
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 populate the XML. In general I think I know how to create elements and attributes and I'm sure I can hack something together but I'm wondering if I'm missing (or forgetting) a better way (other than a long line of hard-coded CreateElement commands)....
0
8260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5837
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5416
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3872
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3908
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2391
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1222
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.