Skip navigation

JSI Tip 2986. My CMD prompt doesn't properly parse the path?

If you receive:

<Your Command> is not recognized as an internal or external command, operable program or batch file, it may be that some application install changed the Path value name, in the registry, from a REG_EXPAND_SZ data type to a REG_SZ data type.

To fix the problem, use Regedt32 to navigate to:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment

If the Path value name is a type REG_SZ, double-click it and paste the data value into notepad.

Delete the Path value name.

On the Edit menu, Add Value name Path, as a REG_EXPAND_SZ data type.

In the String Editor, paste the data value.

You may have to restart your computer.

See tip 1907.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish