How do I set Windows environment variables permanently?
I see that the Windows environment variables are reset when you close the command window. I want to set them permanently, so that I don't have to repeat the task every time I use the CLI.
How do I set Windows environment variables permanently?
I see that the Windows environment variables are reset when you close the command window. I want to set them permanently, so that I don't have to repeat the task every time I use the CLI.
Right click on Computer, Advanced system settings, select Advanced tab and click Environment variables.
Note: once you modify the environment variables, you will have to restart your applications, including CLI.
This can also be achieved from a command prompt. The following example sets a variable at the user level:
SETX variable_name value
For machine level, elevation is required:
SETX variable_name value /m
Right click on Computer, Advanced system settings, select Advanced tab and click Environment variables.
Note: once you modify the environment variables, you will have to restart your applications, including CLI.
© 2022 - 2024 — McMap. All rights reserved.