title: Batch script to switch between two proxies
body: <p>I'm using a batch script for my pc at work to switch between two proxy servers. Currently I have 2 separate scripts for each of the proxies which I use accordingly to which server I want to connect.</p>
  
  <pre><code>reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ^
  /v ProxyServer /t REG_SZ /d proxyAddress:port /f
  </code></pre>
  
  <p>Both scripts are the same, just the address is different. I would like to create a single batch file that changes between the two stored addresses (if one is in use, change it to the other one). Is there a way to return a value from REG_SZ entry and evaluate it to stored values?</p>
  
  <p>Thanks</p>