Finding associated program to open a file

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Associations are stored in registry. Check for example HKEY_CLASSES_ROOT and
..pdf entry there.

HTH
Alex
 
Back
Top