Add shortcut to DESKTOP

  • Thread starter Thread starter Simone
  • Start date Start date
S

Simone

How can i add a shortcut to an application in the "Desktop" of my POCKET PC
like TOMTOM 3?
PS: The desktop is the "Start window" and it contains
Hour,Contacts,Appointments,Tasks.

Simon.
 
Try this:

static public bool AddShortcut(string applicationPath)
{
return SHCreateShortcut(@"\Windows\Start Menu\" +
Path.GetFileNameWithoutExtension(applicationPath) + ".lnk", "\"" +
applicationPath + "\"");
}


[DllImport("coredll.dll", EntryPoint="SHCreateShortcut")]
private static extern bool SHCreateShortcut(string shortcut, string target);
 

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