How can I show the list of all programs associated with a file type?

后端 未结 1 914
北恋
北恋 2021-01-03 13:53

I am looking to build an open with list, just like in the windows context menu,for image files.So how could i get the list of all programs associated with a file type ?

相关标签:
1条回答
  • 2021-01-03 14:24

    First source

    If you look in the registry under HKEY_CLASSES_ROOT\.bmp.

    The (Default) value will show you the default associated program. In my case, this shows Paint.Picture, which links you to HKEY_CLASSES_ROOT\Paint.Picture.

    Under HKEY_CLASSES_ROOT\.bmp you'll also find the subkey OpenWithList which contains subkeys to "Open With" applications.

    Second source

    Under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts you'll also find a list of fileextensions. Look for .bmp, a subkey OpenWithList exists there too. I think this source is what you need.

    0 讨论(0)
提交回复
热议问题