Skip to main content
added 205 characters in body
Source Link
Dennis
  • 49.9k
  • 12
  • 134
  • 151

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.

There must be no space between a semicolon and the next entry.

Set your path to

%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.

Only ; is used to separate directories in the path name. As a result, every character has to be treated literally.

This includes spaces. Otherwise, it wouldn't be possible to specify directories that end or even begin with a space (the drive letter is optional).

Set your path to

%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.

added 478 characters in body; deleted 12 characters in body; added 353 characters in body; deleted 757 characters in body
Source Link
Dennis
  • 49.9k
  • 12
  • 134
  • 151

I suppose the variable PATHEXT got modified. It holds the extensions of files that shouldThere must be recognized as external commands. Yours probably doesn't holdno space between a semicolon and the .EXE extensionnext entry.

Executing set PATHEXT should display the following or something similar:Set your path to

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;%SystemRoot%\system32\;%SystemRoot%\;%SystemRoot%\System32\Wbem\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.WSH;0\;C:\Program Files (x86)\OpenSSH\bin\;C:\Python27\;C:\Program Files (x86)\curl-7.MSC23\;C:\Program Files (x86)\Git\bin\;C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\PHP\;C:\Program Files\Mercurial

Ifand it doesn't, change its valueshould work.

I suppose the variable PATHEXT got modified. It holds the extensions of files that should be recognized as external commands. Yours probably doesn't hold the .EXE extension.

Executing set PATHEXT should display the following or something similar:

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

If it doesn't, change its value.

There must be no space between a semicolon and the next entry.

Set your path to

%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.

Source Link
Dennis
  • 49.9k
  • 12
  • 134
  • 151

I suppose the variable PATHEXT got modified. It holds the extensions of files that should be recognized as external commands. Yours probably doesn't hold the .EXE extension.

Executing set PATHEXT should display the following or something similar:

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

If it doesn't, change its value.