Hey guys i need help this time i need help on how to turn a normal variable into a enviromental variable?
|
Shell
How Do I Turn A Normal Variable Into A Enviromental Variable? |
|
Why do you need to use an environment variable? Generally speaking, that's for something making permanent changes to a system, such as adding a directory to the %path% variable.
Oct 6, 2014 10:15 AM
(This post was last modified: Oct 6, 2014 10:17 AM by G T X.)
I guess you could change an existing environmental variable by simply using the set command.. "Set PATH=%PATH%;%location_to_add%".
But, I'm not sure how one would set an environmental variable. Brb google. Edit: try "setx /?" I have no fucking clue.
Syntax for standard usage is as follows:
Defining an environment variable in the local user's environment: Code SETX <variable> <value>Defining an environment variable in the global environment: Code SETX <variable> <value> /MThat should help. ![]() |
|
|




![[Image: gaqzA.png]](https://i.imgur.com/gaqzA.png)