doesn't recognize some dos command


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
 
Ad

Advertisements

T

Torgeir Bakken \(MVP\)

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
 
J

Jason Helms

type into cmd window:

path C:\winnt\system32

ping, ipconfig, etc. should work after that.
 
Ad

Advertisements

B

Bill Stewart

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
 

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

Similar Threads


Top