this post was submitted on 05 Dec 2023
7 points (100.0% liked)

Windows 11

977 readers
13 users here now

Welcome to the community for Windows 11, Microsoft's latest computer operating system.

Rules:

founded 2 years ago
MODERATORS
 

Why is Path variable behaving like other user variables in "Edit environment variables for your account"?

I tried to add a path to the Path variable using chatgpt prompts (which I should not have done)

setx Path "%JAVA_HOME%\bin;%PATH%"

Now I can't see the old path variables nor add new path variables. The system functions fine until now but I don't know what I should do to revert back the behaviour.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

Yes, Path is an user variable. Since it will have multiple path(s) there are options to add, delete, move path(s) but when you only have one path in the path variable, it will behave like other user variables. I learnt this from a mistake I made yesterday.

[–] [email protected] 1 points 1 year ago (1 children)

Hmm, guess I don't understand.

There's a system path, and a user-definable path as shown in the screenshot?

We're you just surprised there's a user-definable path?

[–] [email protected] 1 points 1 year ago