I installed an application that screwed my PATH variable. Now I cannot run anything from the command prompt. Is there any way I can restore PATH variable?
Got the answer on Experts Exchange. Here is the excerpt:
regedit and check for the "Path" value in
HKLM\System\ControlSet<xx>\Control\Session Manager\Environment (replace
<xx> with all numbered
ControlSet entries that are present. No need to check
CurrentControlSet, it's one of the
ControlSetxx keys, and you won't find anything under there.)
These are the "Last Know Good" configurations; if you're lucky, there's still one left that has a path variable.
If not, the bare minimum required is this:
The default environment variables are stored in the registry under following key
Set the path variable to its default value here:
A system restore should restore the PATH variable.
Windows XP System Environment Variables
The key is
The value is
Path REG_EXPAND_SZ %SystemRoot%\;%SystemRoot%\system32\;%SystemRoot%\system32\wbem\