title: How to add multiple PATHs to the System Variable in Environment Variables in Windows 10?
body: <p>I mistakenly deleted the entire PATH variable under System Variables. So I tried to add a variable named PATH explicitly, to the System Variable. But now whenever I try to add multiple PATHs, each PATH overwrites the previous one.</p>
  
  <p><a href="https://i.stack.imgur.com/4V1aj.jpg" rel="nofollow noreferrer">Screenshot 1</a></p>
  
  <p>As you can see, instead of opening the list of paths, it just gives the option of one path. So I tried to append a PATH variable using command line.</p>
  
  <p><code>setx path "D:\Softwares\MongoDB\bin" /m</code></p>
  
  <p><a href="https://i.stack.imgur.com/yGnnk.jpg" rel="nofollow noreferrer">Screenshot 2</a></p>
  
  <p>It still overwrites the previous path. As shown, the Java path(from <a href="https://i.stack.imgur.com/4V1aj.jpg" rel="nofollow noreferrer">Screenshot 1</a>) got overwritten by the MongoDB path.</p>
  
  <p>How do I resolve this issue ? How do I add multiple paths to the PATH variable ?</p>
  
  <p>P.S - I use Windows 10 (64 bit).</p>