Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically changing shortcut properties.
Message
 
 
À
13/01/2005 22:13:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00977040
Message ID:
00977042
Vues:
52
>Does anyone know how to go about changing Windows desktop shortcut properties programatically?
oShell = CreateObject("WScript.Shell")
* Get desktop folder
lcDesktop = oShell.SpecialFolders("Desktop")
lcShortcutName = "whatever.lnk"
* Create shortcut if it doesn't exists or open existing one
oLink = oShell.CreateShortcut ( ADDBS(lcDesktop) + lcShortcutName )
* Set/Change properties here
....
oLink.Save()
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform