Path and %SystemRoot% resolving

G

Guest

For a few days now I've been having a weird problem with my laptop running windows XP.
From a command prompt I can not issue commands lilke "ping" and "ipconfig". It complains that command not found although the files are present in C:\windows\system32.
I've looked at my path and the weird thing that I can see is that for whatever reason it doesn't seem to be resolving %SystemRoot%.


C:\WINDOWS\system32>Path
PATH=C:\IXP1200\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

although the variable appears to ber resolving properly...
C:\WINDOWS\system32>echo %SystemRoot%
C:\WINDOWS

Any Ideas?
 
T

tony

Had the same problem today. Check if in the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment
the value for "Path" is of type REG_EXPAND_SZ. Some apps change it to REG_SZ
which
caused that error on my machine. I reimported the value from a backup file.


Paulo said:
For a few days now I've been having a weird problem with my laptop running windows XP.
From a command prompt I can not issue commands lilke "ping" and
"ipconfig". It complains that command not found although the files are
present in C:\windows\system32.
I've looked at my path and the weird thing that I can see is that for
whatever reason it doesn't seem to be resolving %SystemRoot%.
 
G

Guest

Tony, I have the same problem, but I don't know to edit this in the registry, can you suggest anything I can do
----- tony wrote: ----

Had the same problem today. Check if in the registry ke
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Sessio
Manager\Environmen
the value for "Path" is of type REG_EXPAND_SZ. Some apps change it to REG_S
whic
caused that error on my machine. I reimported the value from a backup file


Paulo said:
For a few days now I've been having a weird problem with my laptop runnin windows XP
From a command prompt I can not issue commands lilke "ping" an
"ipconfig". It complains that command not found although the files ar
present in C:\windows\system32
I've looked at my path and the weird thing that I can see is that fo
whatever reason it doesn't seem to be resolving %SystemRoot%
 
T

tony

first create a text file consisting of the following 4 lines:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment]
"Pathnew"=hex(2):43,00


Call the file temp.reg and double click the file to import that value into
the registry.
The imported value is of type REG_EXPAND_SZ. Open Regedit and copy the
content of the
original "Path" value to the new value "Pathnew". Rename "Path" to "Pathold"
(or delete it)
and rename "Pathnew" to "Path". Done.


Rick said:
Tony, I have the same problem, but I don't know to edit this in the
registry, can you suggest anything I can do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top