thi,
In order to do this, you will want to use the IShellLink interface as
well as the IPersistFile interface (through COM interop).
Here is an article that goes into detail what you need to do it, as well
as sample code:
http://www.vbaccelerator.com/home/NE...ts/article.asp
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"thi" <th******@hotmail.comwrote in message
news:ux**************@TK2MSFTNGP04.phx.gbl...
Hi,
How do i create an application shortcut on desktop programmically in C#?
I have done some shortcut coding before in visual basic 6 using windows
scripting host but later found out that scripting codes get block by some
application such as Norton and McAfee.
Would anyone mind give me some help or better still give me some sample
code. I would prefer API calls then windows scripting host.
Many thank you in advance.