The first solution:
Create a new environment variable with a random name, such as path1, then add the environment variable path in it, and then add% path1% in path.
Sometimes this method does n’t work. I do n’t know if it ’s too long for expansion. At this time, you can use solution two.
Solution two:
win + R, enter regedit,
Open the registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Environment
Double-click Path (REG_EXPAND_SZ) on the right, append the contents, save and restart the computer, and you are done.
Solution three:
There is also a path in the user variable, and it can be added to this path. It is only necessary to log in to the computer with the current user name.