【原】得心應手小工具開發——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);
三、軟件分享
直接送上軟件了,雖然非常簡單,半個小時就寫完了,但是真的很“得心應手”哦~~

工具下載:點這里
歡迎光臨我的網站:九元購


浙公網安備 33010602011771號