I need to create an environment variable in windows, through a batch.
Can I create a local variable with
set variavel=valor
But I need to access this value through other batch. how do I create a windows variable?
I need to create an environment variable in windows, through a batch.
Can I create a local variable with
set variavel=valor
But I need to access this value through other batch. how do I create a windows variable?
To create an environment variable, you need to have administrator privileges, so just use the setx
Example:
setx NOME valor