问题
Is it possible to list all the applications on a machine that can open a specific file type, using only the files extension? for example if I have a text file (.txt), I want a list of all applications that can open .txt files.
回答1:
Check out the HKEY_CLASSES_ROOT
hive in your registry. It's all in there.
回答2:
There is no master list of every application that can open a specific file that I am aware of.
回答3:
I am assuming you are talking about Windows machines...
You can only go so far as listing the applications that are registered has to able of handling a specific file extension (the same applications that show up when you right click and select "Open With"). This is somewhere in the Windows Registry.
I would suggest you to check on the microsoft documentation, or open your registry and start searching for known extensions.
来源:https://stackoverflow.com/questions/864966/list-all-applications-that-handle-a-specified-file-type