title: How to persistently set a variable in Windows 7 from a batch file?
body: <p>I am trying to set the PATH environment variable in windows 7 using a bat-file; however it does not seem to work.</p>
  
  <p>I am using this windows command:</p>
  
  <pre><code>set PATH=%cd%;%path%
  pause
  </code></pre>
  
  <p>However it only appears to be valid for this cmd instance.  I want it to be permanent, since I first set the PATH and then run a program which needs to locate the libraries in that folder. </p>