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?