Creating a shell link (CF3.5 C#)

  • Thread starter Thread starter Bjørn Brox
  • Start date Start date
B

Bjørn Brox

Hi!

Using compact framework 3.5, C#
Could anyone tell me how I create a shell shortcut to a file within a C#
program (Form button action)?

I am in a need of add or remove a link to an exe file to the
\\windows\\startup folder.
 
Fabien skrev:
Thanks, I was hoping for some .net built in code (a static function under
Path or similar) for this, i.e a portable version without any need to
know how a
shortcut file is built up on a specific OS version.

Anyhow: One of the comments to this blog showed me how to create a
shortcut without needing to know how such a file is built up.

http://msdn2.microsoft.com/en-us/library/ms959231.aspx
 
Back
Top