Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create shortcut on desktop
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00861944
Message ID:
00862042
Vues:
13
>I used the code below on windows ME
>
>* Declare the function
>DECLARE INTEGER CreateShellLink IN LNKFILES.DLL;
>STRING @lpzLinkFileName, STRING @lpzExeFileName
>
>lnErrorCode = CreateShellLink("c:\windows\desktop\dental.lnk","c:\dent3\dental.exe")
>
>*******************
>
>Can I use this code also for windows XP?

You'd probably be better off getting the user's desktop first to determine the location. Under XP, this can be done using the WScript.Shell object. Take a look at the series of articles that the late Ed Rauh and I did on the Windows Script Host. It's available on-line beginning with the September, 2000 issue of the VFUG newsletter (www.vfug.org). The Shell object was covered in the October issue and covers this subject.
George

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

Click here to load this message in the networking platform