title: Using Batch File to add to PATH Environment Variable (Windows 10)
body: <p>I am trying to create a batch file to automatically add my python folder to the Environment Path. Below is my environment variables before the file was run.<a href="https://i.stack.imgur.com/zmZGi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zmZGi.png" alt="enter image description here"></a></p>
  
  <p>And this is the file I ran (Note the bat file is in the same directory as the python folder):</p>
  
  <pre><code>@echo OFF
  setx path "%path%;%cd%\Python36"
  </code></pre>
  
  <p>This file added python to path (see the red underline) but also added a bunch of other folders to the path (blue circle). I am confused as to why this occurred. Any help would be greatly appreciated! 
  <a href="https://i.stack.imgur.com/T7Tdr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7Tdr.jpg" alt="enter image description here"></a></p>