How create a desktop shortcut in c#?

  • Thread starter Thread starter thi
  • Start date Start date
T

thi

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.
 
thi said:
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.

Look into
http://www.sorrowman.org/c-sharp-programmer/url-link-to-desktop.html

there's example how to make URL shortcut or app shortcut to desktop. There
probably are better ways than these though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top