如何确定Windows默认浏览器(在开始菜单顶部) [英] How to determine the Windows default browser (at the top of the start menu)

查看:220
本文介绍了如何确定Windows默认浏览器(在开始菜单顶部)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定Windows默认浏览器(在开始菜单顶部)?

How can I determine the Windows default browser (at the top of the start menu)?

我使用VB6,但或许可以适应其他code没有问题的。

I am using VB6 but can probably adapt other code no problem.

有堆栈溢出类似的问题,但他们似乎提供了不正确的答案。

There are similar questions on Stack Overflow, but they seem to provide incorrect answers.

比如说注册表项HKEY_LOCAL_MACHINE \\ SOFTWARE \\客户\\ StartMenuInternet \\列出的Internet Explorer都和我的电脑上的Firefox。

For instance the key HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\ lists both Internet Explorer and Firefox on my PC.

和获得的.html协会对我来说也将失败,因为HTML文件是与IE有关,但Firefox是我的默认浏览器。

And getting the .html association fails for me as well, as HTML files are associated with IE but Firefox is my default browser.

请注意,我不希望真正打开浏览器,只得到它的名字。

Note that I don't want to actually open the browser, just get it's name.

推荐答案

HKEY_CURRENT_USER \\ Software \\ Classes下\\ HTTP \\壳\\开放\\ COMMAND \\(默认)是当前用户对HTTP协议处理程序(意思是默认浏览器;注意:这是不是同样的事情的.html 默认处理程序)。

HKEY_CURRENT_USER\Software\Classes\http\shell\open\command\(Default) is the current user's handler for the HTTP protocol (which means "default browser"; NOTE: this is NOT the same thing as the .html default handler!).

然而,可能有在开始菜单的顶部不同的浏览器不改变默认值。仅供参考,在开始菜单中的浏览器可执行文件名保存在 HKEY_CURRENT_USER \\ SOFTWARE \\客户\\ StartMenuInternet \\(默认)

However, it is possible to have a different browser at the top of Start Menu without changing the default. FYI, the browser executable name in Start menu is stored in HKEY_CURRENT_USER\Software\Clients\StartMenuInternet\(Default).

这篇关于如何确定Windows默认浏览器(在开始菜单顶部)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆