Windows: List and Launch applications associated with an extension

前端 未结 5 1128
萌比男神i
萌比男神i 2020-11-29 04:11

How to determine the applications associated with a particular extension (e.g. .JPG) and then determine where the executable to that application is located so that it can be

5条回答
  •  情话喂你
    2020-11-29 04:58

    The file type associations are stored in the Windows registry, so you should be able to use the Microsoft.Win32.Registry class to read which application is registered for which file format.

    Here are two articles that might be helpful:

    • Reading and Writing the Registry in .NET
    • Windows Registry Using C#

提交回复
热议问题