doesn't recognize some dos command

  • Thread starter Thread starter k26
  • Start date Start date
K

k26

I got a newly built pc, win2000, 5.00.2195 sp4.
some of the dos commands is not recognized, like
ipconfig, ping, route print...

error message: "The name specified is not recognized as
an internal or external command, operable program or
batch file. "

cd, dir ... works fine.


anybody got any idea?

thanks
 
k26 said:
I got a newly built pc, win2000, 5.00.2195 sp4.
some of the dos commands is not recognized, like
ipconfig, ping, route print...

error message: "The name specified is not recognized as
an internal or external command, operable program or
batch file. "

cd, dir ... works fine.
Hi

Most likely some rough 3rd party installer have changed the registry
value type for the path from "REG_EXPAND_SZ" to "REG_SZ", more about
this and how to fix it here:

http://home.comcast.net/~stewartb/cmdprompt.html#6
 
type into cmd window:

path C:\winnt\system32

ping, ipconfig, etc. should work after that.
 
Jason said:
type into cmd window:

path C:\winnt\system32

ping, ipconfig, etc. should work after that.

Actually, no, don't do that, because if you do, then all you are doing is
modifying the path to ONLY contain c:\winnt\system32 for the current
cmd.exe window.

The real problem is that the Path setting in the registry is broken, and
Torgeir already provided the link to my site that explains how to fix it.

http://home.comcast.net/~stewartb/cmdprompt.html#6

There must be a lot of badly-written installation programs out there that
seem to mangle the Path registry data type. This question is frequently
asked.

Regards,

Bill
 
Back
Top