Java Default browser name

和自甴很熟 提交于 2021-02-17 06:01:13

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!