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);
--
Sergey Bogdanov
http://www.sergeybogdanov.com
Simone wrote:
> 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.
>
>