title: Deleting a Path Environment value in a variable with a script.bat on Windows
body: <p>i created a batch-file for adding a new value in the path with </p>
  
  <pre><code>setx path "%PATH%;C:\Windows\System32\name" /M
  </code></pre>
  
  <p>Now i tried to delete this former added value also with a batch-file. 
  i tried it with</p>
  
  <pre><code>reg delete "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v Path
  </code></pre>
  
  <p>but i couldn't find out how to select only "C:\Windows\System32\name" from all the values in Path and delete only this. </p>