>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.