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:
00330983
Vues:
14
>oShell = CREATEOBJECT('WScript.Shell')
>lcdesktop = oShell.SpecialFolders('Desktop')
>oLink = oShell.CreateShortcut(lcdesktop + "\" + lcname)
>oLink.TargetPath = lcfile
>oLink.Save

Back again...works fine on Win95 machine. Run same code on NT machine inside vfp6 or outside of it and get same error

"OLE error code...Class Not Registered" when it hits the postsetup, first line.

??
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform