Trouble with CMD recognizing commands

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When using the command line, the machine does not recognize commands like "ping", "ipconfig", etc. I see where someone reported that in the registry, the path should be of type REG_EXPAND_SZ. I checked and in my machine it is REG_SZ. The only thing is I am not familiar with how to change it. Could someone tell me how since I am not a registry expert?
 
Rick, if you have a WinXP CD you can try a system file check. Start>Run
type: sfc /scannow Have the WinXP CD
in the cdrom drive.
Rick said:
When using the command line, the machine does not recognize commands like
"ping", "ipconfig", etc. I see where someone reported that in the registry,
the path should be of type REG_EXPAND_SZ. I checked and in my machine it is
REG_SZ. The only thing is I am not familiar with how to change it. Could
someone tell me how since I am not a registry expert?
 
Go to My computer

right click --- > properties ---> advanced --> enviromental variables
---> Comspec %SystemRoot%\system32\cmd.exe

this is like the old dos (cmd) (command) path statement
find ping ipconfig and make sure they are in a directory pointed to by
the Comspec entry for your account.

HTH

Hemlock
 
"Hemlock tree" said in news:[email protected]:
Go to My computer

right click --- > properties ---> advanced --> enviromental variables
---> Comspec %SystemRoot%\system32\cmd.exe

this is like the old dos (cmd) (command) path statement
find ping ipconfig and make sure they are in a directory pointed to by
the Comspec entry for your account.

You are talking about the wrong environment variable. COMSPEC specifies
where to find the command-line interpreter loaded in a DOS shell. That's
why it points to cmd.exe. It is the PATH environment variables that you
need to edit. Notice I used plural here. There is a SYSTEM and a USER
version of the PATH environment variable. If you want everyone who logs on
to include a path in their copy of the PATH environment variable then edit
the SYSTEM version of PATH. If you want only your account to use the
modified path then edit the USER version of PATH. When you logon, the
SYSTEM and USER versions of PATH get concatenated together.
 
Rick

I am having same problem. I think I have followed the advice from the other guys. What key are you looking at in the Registry that you were talking. Below is a full description of where I am at

When I go to a command prompt (cmd.exe or command.exe) I do not get the correct path value. This causes common commands to fail. Such as ping. I get the message

'PING' is not recognized as an internal or external command
operable program or batch file

However if I manually do cd \windows\system32 it works

If if type the path command I get

PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;etc..

If I look at my Environment Variables under My Computer Properties it shows correctly C:\Windows\System 32,etc and my Windir variable shows as C:\Windows. And if you click on the Edit button for those variables they show as %SystemRoot% instead of C:\Windows

This has caused some problems with some other applications as well

If anyone has a clue as to how to fix I would greatly appreciative.
 
Back
Top