There mustOnly ;
is used to separate directories in the path name. As a result, every character has to be no space betweentreated literally.
This includes spaces. Otherwise, it wouldn't be possible to specify directories that end or even begin with a semicolon and the next entryspace (the drive letter is optional).
Set your path to
%SystemRoot%\system32\;%SystemRoot%\;%SystemRoot%\System32\Wbem\;%SYSTEMROOT%\System32\WindowsPowerShell\v1%SystemRoot%\system32\;%SystemRoot%\;%SystemRoot%\System32\Wbem\;%SystemRoot%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\OpenSSH\bin\;C:\Python27\;C:\Program Files (x86)\curl-7.23\;C:\Program Files (x86)\Git\bin\;C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\PHP\;C:\Program Files\Mercurial
and it should work.