title: Batch Script: Replace One Variable with Another
body: <p>OK basicly what I am trying to do is make a script that will update one variable with another.</p>
  
  <p>I have already created all of the script so it pulls the new data from the registry and sets it, now i just need it to update an old variable.</p>
  
  <p>Example script</p>
  
  <pre><code>set current_shockwave_version=1
  set current_flash_version=1
  
  FOR /F "tokens=2* delims=    " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayer" /v CurrentVersion ') DO SET Installed_Flash_Version=%%B
  FOR /F "tokens=2* delims=    " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Shockwave 11\currentupdateversion" ') DO SET Installed_Shockwave_Version=%%B
  </code></pre>
  
  <p>Now i want to replace the value of current_shockwave_version &amp; current_flash_version with the variables pulled from the registry. There will be a bunch of admins using  this script and im trying to add a easy update function so they can just run this replace function on a computer that is fully updated.</p>