【原】得心应手小工具开发——IE代理快速切换工具

一、引入

因为公司里上外网要经常换IE代理地址,每次切换地址都要进到Internet Options里去设置一番,经常切换的话很是麻烦,由于用了点时间作个小工具来方便自己。

二、实现思路

其实思路很简单了,就是去修改注册表里的键值嘛,关键的代码就这一点。

1                 RegistryKey hklm = Registry.CurrentUser;
2                 RegistryKey software = hklm.OpenSubKey("SOFTWARE", true);
3                 RegistryKey microsoft = software.OpenSubKey("Microsoft", true);
4                 RegistryKey win = microsoft.OpenSubKey("Windows", true);
5                 RegistryKey currentVersion = win.OpenSubKey("CurrentVersion", true);
6                 RegistryKey internetSetting = currentVersion.OpenSubKey("Internet Settings", true);
7                 internetSetting.SetValue("ProxyServer", proxyStr);

 

三、软件分享

直接送上软件了,虽然非常简单,半个小时就写完了,但是真的很“得心应手”哦~~

【原】得心应手小工具开发——IE代理快速切换工具

 工具下载:点这里

 欢迎光临我的网站:九元购

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2021-08-22
  • 2022-01-23
  • 2022-01-22
  • 2021-12-07
  • 2021-07-23
猜你喜欢
  • 2021-10-23
  • 2022-01-31
  • 2021-12-26
  • 2021-07-30
  • 2021-11-26
  • 2021-11-22
  • 2021-12-03
相关资源
相似解决方案