Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook is closed after release an object
Message
From
07/01/2001 01:35:08
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00458982
Message ID:
00460302
Views:
16
>I assume you can use the RUN command to run outlook - but how do you find it's location on the particular machine - or is there another way to specify it?
>

Try looking in the registry; if it's installed, there will be a registry key for the ProgID Outlook.Application under HKEY_CLASSES_ROOT\Outlook.Application; this will point at a CLSID; locate the registry key HKEY_CLASSES_ROOT\CLSID\the CLSID you found under the ProgID; it will have a LocalServer32 subkey; the default value is the actual full path to start Outlook.

You could also check for the presense of the registry key HKEY_CLASSES_ROOT\outlook\shell\open\command - the default value will be the executable path, with the addition of a parameter used when Outlook is started through OLE - if you double-click in Windows Explorer on a saved email for example - strip the "%1" at the end of the registry value to remove it.
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
Next
Reply
Map
View

Click here to load this message in the networking platform