Windows RegKey - Default Browser Application Path

后端 未结 4 1324
失恋的感觉
失恋的感觉 2021-01-18 03:13

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

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

4条回答
  •  广开言路
    2021-01-18 03:54

    Here's the key you want:

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

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

    Edit:

    For per-user settings, use this key:

    HKEY_CLASSES_ROOT\http\shell\open\command

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

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

提交回复
热议问题