PC Review


Reply
Thread Tools Rate Thread

Add shortcut to DESKTOP

 
 
Simone
Guest
Posts: n/a
 
      6th Jun 2005
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.


 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      7th Jun 2005
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.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: creating shortcut keys for a desktop shortcut ju.c Windows XP Customization 0 9th Jan 2009 02:53 PM
Re: Shortcut key for desktop shortcut icon won't stick Ramesh, MS-MVP Windows XP General 2 28th Dec 2006 05:39 AM
Right-clicking on desktop shortcut, any shortcut leads to long pause, sometimes lockup RE Windows XP General 3 3rd Jun 2006 12:41 AM
Adding shortcut in user's desktop (setup proj) creates a shortcutto shortcut ! TN Microsoft C# .NET 2 24th Mar 2006 07:23 PM
FAQ - creating desktop shortcut from batch file - without shortcut.exe Tom Lavedas Windows XP General 0 9th Sep 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:40 AM.