Option 1
After you change PATH with the GUI, close and re-open the console window.
This works because only programs started after the change will see the new PATH.
Option 2
Execute this command in the command window you have open:
set PATH=%PATH%;C:yourpathhere
This command appends C:yourpathhere to the current PATH.
Breaking it down:
set – A command that changes cmd’s environment variables only for the current cmd session; other programs and the system are unaffected.
PATH= – Signifies that PATH is the environment variable to be temporarily changed.
%PATH%;C:yourpathhere – The %PATH% part expands to the current value of PATH, and ;C:yourpathhere is then concatenated to it. This becomes the new PATH.
WARNING: This solution may be destructive to your PATH, and the stability of your system. As a side effect, it will merge your user and system PATH, and truncate PATH to 1024 characters. The effect of this command is irreversible. Make a backup of PATH first. See the comments for more information.
Don’t blindly copy-and-paste this. Use with caution.
You can permanently add a path to PATH with the setx command:
setx /M path “%path%;C:yourpathhere”