Hi,
Yes. All info stored in registry. Look HKEY_CLASSES_ROOT\.DOC or
HKEY_CLASSES_ROOT\.PDF mapping. The registry key contain name of class which using for this extension. For example for .DOC it might be "Word.Document.8"
Then OpenRegistryKey HKEY_CLASSES_ROOT\Word.Document.8\Shell\Open\Command - it will contain fullpath and exe.
Same for PDF, HKEY_CLASSES_ROOT\.PDF return AcroExch.Document and
HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open\Command - reference to Actobat.
>Is there a good way to know if Acrobat or Word is installed, and then open the appropriate file? (VFP7)
>
>
>do case
>case Acrobat_is_here
> open news.pdf
>otherwise
> open news.doc
>endcase
>