title: Windows add to path from command line
body: <p>When using Boxstarter and or Chocolatey it is difficult to install JDK properly to use with Maven and other tools.</p>
  
  <p>How can I add to environmental variables?</p>
  
  <pre><code>setx -m path "C:\java"
  </code></pre>
  
  <p>but this will clear previous environmental variable.</p>
  
  <p>Suggesing this was a duplicate:I said I wanted "add" to the ev's not "set" and I was clearly looking for a cmd script</p>