Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Create Shortcuts/Get Desktop Folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00866766
Message ID:
00866778
Vues:
28
>the desktop dir shuold be
>
>?GETENV("USERPROFILE")+"\Desktop\"
>
>to create a shortcut try this:
>
>oshell = CreateObject("WScript.Shell")
>lnk = oshell.CreateShortcut("foo.lnk")
>lnk.TargetPath = "c:\dummy.exe"
>lnk.Save
>
>HTH

Franco,

The WSH can do this as well, plus retrieve the name of the All User's Desktop.
oShell = CREATEOBJECT('WScript.Shell')
? oShell.SpecialFolders("AllUsersDesktop")
? oShell.SpecialFolders("Desktop")
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