Finding associated program to open a file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    Finding associated program to open a file

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

    #2
    Re: Finding associated program to open a file

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

    HTH
    Alex

    <anonymous@disc ussions.microso ft.com> wrote in message
    news:0b5601c3a8 4b$e19aad90$a50 1280a@phx.gbl.. .[color=blue]
    > 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.[/color]


    Comment

    Working...