create a Shortcut?

  • Thread starter Thread starter Zanna
  • Start date Start date
Z

Zanna

Hi,

I'd like to create a shortcut of my program into the startup folder.

Is it possible to create a shortcut programmatically?
And how to retrieve the startup folder?

Thank you!
 
You can create a shortcut in code using the SHCreateShortcut API function -
see here for the P/Invoke details:-
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=300

You can also create a shortcut during your application install by adding an
entry into the [Shortcuts] section of the INF file created by the Build Cabs
option in Visual Studio.

Peter
 
Back
Top