I am trying to add the current directory (from a command-line) to Windows path permanently, but I am having serious problems implementing this.
My initial attempt was
Simple solution:
The syntax of setx is slightly different than the syntax of set.
With set, I would do:
set PATH=%PATH%;%cd%
With setx, I needed to do:
setx PATH "%cd"
The first argument specifies the name of the environment variable.
The second argument specifies the value to add to this variable.
The double-quotes are required for when the second argument contains spaces.
This might also be the case with set, by the way.