Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry Calls to find Associated EXE for .BMP, .DOC, et
Message
From
19/07/1999 11:47:42
 
 
To
19/07/1999 11:44:23
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00243126
Message ID:
00243134
Views:
25
>I need to find the associated EXE of any file based on its extension and then execute the EXE with its associated file on the command line. Like you would if you double clicked on a .BMP, .DOC, etc. in the Windows Explorer.
>

There's a Win32 API call, FindExecutable(), that will do this (I believe there's information in the FAQ or Files Section on this), or you can examine HKEY_CLASSES_ROOT\file extension, get the CLSID of the server, and then look up the CLSID under HKEY_CLASS_ROOT\CLISID and find the Shell\Open subkey.
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