How do I set Windows Environment variables permanently?

前端 未结 2 1392
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 23:16

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 permanen

相关标签:
2条回答
  • 2020-12-03 23:40

    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.

    0 讨论(0)
  • 2020-12-03 23:46

    This can also be achieved from command prompt. The following example set a variable at user level:

    SETX variable_name value
    

    For machine level elevation is required:

    SETX variable_name value /m
    
    0 讨论(0)
提交回复
热议问题