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:
00364111
Vues:
21
>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?

Look at the Path property.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform