How to change users Environment variables persistenty without UI

Hallo, are you also borried with all the changes of your User variables or System variables in:

Computer > Properties > Advanced System settings > System Properties > Advanced > Environment variables

image 
Here is how it looks like in UI

Less known receipt how to do that is to use setx command line:

setx variable_name variable_content

for example:

setx Hello World

image

which sets Hello variable to World string.

Immediatelly, you can check how it looks now in Environment Variables dialog:

image 
And you will see there a new wanted value 🙂

Good luck

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s