| 網(wǎng)站首頁 | 關(guān)于我們 | 開發(fā)優(yōu)勢 | 產(chǎn)品展示 |
| 合作企業(yè) | 新聞動態(tài) | 聯(lián)系我們 | 電話聯(lián)系 |
文章作者:濟南軟件開發(fā) 時間:2016年12月20日
*修改默認瀏覽器
*/
//瀏覽器路徑
string exePath = @"F:\firefox\firefox.exe";
//注冊表項
string reg = @"http\shell\open\command";
string nameReg = @"http\shell\open\ddeexec\Application";
RegistryKey key = null;
try
{
key = Registry.ClassesRoot.OpenSubKey(reg, true);
if (key != null)
{
key.SetValue("", string.Format("\"{0}\" -- \"%1\"", exePath));
key.Close();
key = Registry.ClassesRoot.OpenSubKey(nameReg, true);
if (key != null)
{
key.SetValue("", Path.GetFileNameWithoutExtension(exePath));
key.Close();
}
}
}
catch (Exception)
{
key.Close();
}
想要了解更多詳情歡迎來電咨詢18678812288
登陸網(wǎng)址:m.h6244.cn。
聯(lián)系人:王經(jīng)理。