Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry Calls to find Associated EXE for .BMP, .DOC, et
Message
 
 
To
19/07/1999 11:44:23
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00243126
Message ID:
00243386
Views:
19
Bob,

If the intent is merely to launch the right app you really don't have to go through all that effort to find the actual exe, you can just use ShellExecute() there are examples under Q&A, General on my website. In VFP6 there is the _ShellExecute class which is similar to the one on my site.

>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.
>
>I'm sure someone has already done this using the Registry Class.
>
>Can someone please point me to some sample code?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform