视窗REGKEY - 默认浏览器应用程序路径视窗、应用程序、路径、浏览器

2023-09-03 01:29:19 作者:这样比什么都好就这样

你可以从中获取什么REGKEY的默认浏览器应用程序的路径?

What RegKey can you get the default browser application's path from?

最好的方式得到它从C#/。NET?

Best way to get to it from C#/.NET?

推荐答案

下面是你想要的关键是:

Here's the key you want:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes下\ HTTP \壳\开放\命令

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command

这里有一个快速注册教程C#,如果​​你需要它。

And here's a quick registry tutorial for C#, if you need it.

修改

对于每个用户设置,使用此键:

For per-user settings, use this key:

HKEY_CLASSES_ROOT \ HTTP \壳\开放\命令

HKEY_CLASSES_ROOT\http\shell\open\command

(HKCR同时具有计算机和用户设置,用户优先级)。

(HKCR has both machine and user settings, user takes priority).

请注意,这可能无法在Vista上工作。欲了解更多信息,see这里。

Note that this might not work on Vista. For more info, see here.