How to change the proxy server by code

To change the proxy server, I have to go to IE-> Internet Options-> LAN Settings and click "Use proxy server for your local network." I am sure there is some way to do this by code. Does anyone know how to do this (C #)?

Many thanks.

Regards, Vlad

+3
source share
2 answers

What if you have to make a batch file and then create a shortcut for it on the desktop and then hotlink to it with something like ctrl + alt + n

And the package looked like this:

[HKEY_CURRENT_USER\ \Microsoft\Windows\CurrentVersion\ ] "ProxyEnable" = DWORD: 00000001 "ProxyServer" = "10.22.40.6:3128"

+2

, GlobalProxySelection.Select.

Microsoft - - .

0

Source: https://habr.com/ru/post/1707908/


All Articles