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:
00364111
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform