How can I create I .reg file or command line to change between connecting with a proxy server (address: proxy or 10.22.12.12, port: 8080) and directly?
I use chrome portable for my proxy connections with this command: GoogleChromePortable.exe --proxy-server=socks="localhost:1080"
This opens a Chrome browser and opens the socks internet proxy for the current session and any tabs opened in that session. Once the browser is closed it is rest to normal.
netsh winhttp command also might be what you're looking for too. This will run the proxy until its reset.