# Help with adding to path in Win10 on a Surface

**URL:** <https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543>\
**Category:** Factual Questions\
**Created:** [November 2, 2017, 7:37pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543 "2017-11-02T19:37:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [November 2, 2017, 7:37pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543/1 "2017-11-02T19:37:21Z")

</div>

I simply cannot see how to add a new path in Win 10 on my Surface. Here are the sequence of steps I found by trial and error: From start menu,  
Click on setting  
Click on System  
Click on About  
Click on System info  
Click on Advanced system settings  
Click on Environment variables  
Click on Path, then Edit  
and a window opens that does not have the path. To be sure, it does have the last entry in the path, the one that was added when I installed TeX, but when I try to add to it, it just wipes that out and I am afraid to do anything with that since I am obviously flying blind.

If I open the settings and type path into the search box, it invites me to click on Edit environment variables and when I click on that I am taken to file explorer with no instructions. If I do that on a different Win 10 box, it puts me to the Environment variables screen as above. Can anyone help?

---

<div class="post-metadata">

**Author:** ![markn\_1](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@markn\_1](https://boards.straightdope.com/u/markn_1)\
**Post date:** [November 2, 2017, 8:03pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543/2 "2017-11-02T20:03:10Z")

</div>

When you click on Edit, it should open a small window that says “Edit environment variable” at the top, a column of buttons on the right (New, Edit, Browse, etc), and a ruled pane on the left. The list of items in PATH should appear in the ruled pane, one per line. Is that not what you’re seeing? FWIW, on my system I only have one entry in the User PATH variable (%USERPROFILE%\AppData\Local\Microsoft\WindowsApps) although there are 5 entries in the System PATH.

---

<div class="post-metadata">

**Author:** ![Blakeyrat](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Blakeyrat](https://boards.straightdope.com/u/Blakeyrat)\
**Post date:** [November 2, 2017, 8:19pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543/3 "2017-11-02T20:19:20Z")

</div>

You can add to the PATH using the CLI.

Run it elevated, and try:

setx path “%path%;C:\Your\_New\_Path”

Change the drive letter and path to the one you want, of course.

See if that works for you.

EDIT: I think, looking at the setx documentation, you need to add /m to make the change global.

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [November 2, 2017, 8:42pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543/4 "2017-11-02T20:42:38Z")

</div>

> [@Blakeyrat](#):
>
> You can add to the PATH using the CLI.
> 
> Run it elevated, and try:
> 
> setx path “%path%;C:\Your\_New\_Path”
> 
> Change the drive letter and path to the one you want, of course.
> 
> See if that works for you.
> 
> EDIT: I think, looking at the setx documentation, you need to add /m to make the change global.

It worked! I did  
setx path %path%;c:\util  
(util is a directory I keep a bunch of batch files that I run from the command line.) and reran path. No change. So I did setx /? and discovered that it has no effect in the current command file and so I exited and reran my command processor (which is call tcc and is a descendant of 4dos) and then the path was what I wanted. I had never heard of setx; it was news to me.

TSD scores again! Many thanks. Incidentally, I googled it before asking the question and found nothing really helpful. Instructions that didn’t work to click on things that didn’t exist.

---

<div class="post-metadata">

**Author:** ![Blakeyrat](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Blakeyrat](https://boards.straightdope.com/u/Blakeyrat)\
**Post date:** [November 2, 2017, 8:50pm UTC](https://boards.straightdope.com/t/help-with-adding-to-path-in-win10-on-a-surface/800543/5 "2017-11-02T20:50:09Z")

</div>

IIRC it was added in Windows Vista. I don’t know if I’d call that “new” in 2017, but compared to the rest of the stuff in the Windows CLI it’s brand spankin’ new. 😉
