In a windows 7 environment, I have a variable VARA=”x” defined under System’s enironmental variables and the same variable VARA=”y” defined under the user’s environmental variables. how do i get the value of VARA as defined in the system’s environmental variables section. I always get the user value not the system one.
Thanks.
In a windows 7 environment, I have a variable VARA=x defined under System’s enironmental
Share
You’ll have to access the registry using JNA.
You can also access user variables: