Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wscript.shell
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00364108
Message ID:
00364109
Views:
41
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform