I am trying to add C:\\xampp\\php to my system PATH environment variable in Windows.
I have already added it using the Environment Varia
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:\your\path\here\"
Remove the /M flag if you want to set the user PATH instead of the system PATH.
Notes:
setx command is only available in Windows 7 and later.You should run this command from an elevated command prompt.
If you only want to change it for the current session, use set.