Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
621 views
in Technique[技术] by (71.8m points)

how do i change default browser using c# or batch file

title speaks it all.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The default browser is saved as an entry in the registry key of windows. The values are saved on a protocol basis like this

HKEY_CLASSES_ROOT[protocol]shellopencommand

Where protocol can be http, https, etc. On how to access/modify registry values inside C#, you can take a look at this article


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...