Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Shortcut Item on Desktop
Message
 
À
05/09/2001 12:11:40
Ronald Suen
Epic Solutions Inc.
Edmonton, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00552613
Message ID:
00552624
Vues:
10
>How do I go about creating a shortcut on the desktop regardless of the Windows version? I am building a custom installation program which requires adding a shortcut on the desktop. I've done some researching in the MSDN website but I found their solutions a little confusing. Any help would be appreciated.
>
>Thanks in advance,

One of two ways come to mind. The first would be to use the Windows Script Host's WScript.Shell object. It exposes methods and properties that'll return the current desktop folder, and create the short cut link. See the second of the series of articles that Ed Rauh and I wrote on the WSH in the VFUG newsletter. The article appeared in last October's issue. The series began in the September issue, and is available on-line at www.vfug.org.

The second is to use something like my "Short Cut Link Files" dll (lnkfiles.dll). It's available in the download section here at the UT, and like the WSH, gives you the functionality to do this. It comes with a help file in VFP syntax that can be copied and pasted into your code.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform