Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wscript.shell
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00364108
Message ID:
00364109
Vues:
37
>I'm using a Windows scripting object to create shortcuts on the desktop. Here's the code:
>
>*********************************************
>loShell=CREATEOBJECT('wscript.shell')
>lcDesktopFolder=loShell.SpecialFolders('Desktop')
>lcLinkFileName=lcDesktopFolder+'\newshortcut.lnk'
>
>loShortcut=loShell.CreateShortcut(m.lcLinkFileName)
>loShortcut.TargetPath='m:\test\exes\merlin6\test_doctrack.exe'
>loShortcut.SAVE()
>**********************************************
>
>Does anyone know how to specify the "START IN" directory in code?

That'd be the WorkingDirectory property.
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