Finding associated program to open a file

G

Guest

How can I find what the associated program is for opening
a particular file type using c#.

For example I want to open a pdf document using
Process.Start but first want to make sure it has an
application assigned to open it.
 
A

AlexS

Associations are stored in registry. Check for example HKEY_CLASSES_ROOT and
..pdf entry there.

HTH
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top