问题
I want to check what default browser is set on computer (name in string). I googled somewhat and i know how to open browser, but i need to check what program will be opened then. How to do this?
回答1:
The information is in the windows registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid
. You can read the key with Java.
来源:https://stackoverflow.com/questions/39731627/java-default-browser-name