视窗REGKEY - 默认浏览器应用程序路径 [英] Windows RegKey - Default Browser Application Path

查看:169
本文介绍了视窗REGKEY - 默认浏览器应用程序路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以从中获取什么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上工作。欲了解更多信息,<一个href="http://newoldthing.word$p$pss.com/2007/03/23/how-does-your-browsers-know-that-its-not-the-default-browser/">see这里。

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

这篇关于视窗REGKEY - 默认浏览器应用程序路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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