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

Windows 11

675 readers
1 users here now

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

Rules:

founded 1 year 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
[โ€“] FooBarrington@lemmy.world 2 points 10 months ago (1 children)
[โ€“] spiderman@ani.social 1 points 10 months ago* (last edited 10 months ago)

I don't have a ControlSet002 folder on the HKEY_LOCAL_MACHINE

Update: I checked out ControlSet001 and it had all the previous path. I cannot copy them since I didn't have enough permissions in my work laptop. But like I said in above comments, doing echo $:PATH displayed the previous path variables which I copied and pasted on the Path variable. I think adding multiple path variable enables the option to add, edit etc. Idk whether I recovered all the previous path variables but it's just functioning fine.