After setting the environment variable by win7, you need to restart the computer problem.
After you set the environment variable, you need to turn off cmd, then run set, and the environment variable changes. If not, you can do the following:
Open the task manager, find all the explorer.exe processes, and end them.
2. Reopen the explorer.exe process.
The registry location of the environment variable:
HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet001\ Control\ Session Manager\ Environment