I am trying to add C:\\xampp\\php to my system PATH environment variable in Windows.
C:\\xampp\\php
PATH
I have already added it using the Environment Varia
Handy if you are already in the directory you want to add to PATH:
set PATH=%PATH%;%CD%
It works with the standard Windows cmd, but not in PowerShell.
For PowerShell, the %CD% equivalent is [System.Environment]::CurrentDirectory.
%CD%
[System.Environment]::CurrentDirectory