Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a desktop shortcut for my app?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316189
Message ID:
00316274
Vues:
22
>I hope there's an easier way besides copying an existing .LNK file and doing a binary edit on it programmatically!
>
>Thanx,

Hi Joe,

You can use my lnkfiles.dll to do this, but you can also use the Windows Script Host (WSH). Here's a sample.
* lcfile is the file the link will point to
* lcname is the name of the shortcut to appear on the desktop
* with the lnk extension
oShell = CREATEOBJECT('WScript.Shell')
lcdesktop = oShell.SpecialFolders('Desktop')
oLink = oShell.CreateShortcut(lcdesktop + "\" + lcname)
oLink.TargetPath = lcfile
oLink.Save
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