CMD prompt error

G

Guest

Whenever I try to use DOS whatever command I try to use I get the same error


'ping' is not recognized as an internal or external command,
operable program or batch file.

How do I make DOS recognize my commands.

I dont know if this has anything to do with it but my path in the registry at.

I hope someone can help me.
Thanks
Kyle

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment

is

C:\PROGRAM FILES\COMPAQ\COMPAQ MANAGEMENT
AGENTS\DMI\WIN32\BIN;%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WSG32\
 
P

Patrick Keenan

Kyle said:
Whenever I try to use DOS whatever command I try to use I get the same
error


'ping' is not recognized as an internal or external command,
operable program or batch file.

How do I make DOS recognize my commands.

Well, it isn't DOS, but at the command prompt type SET and see what the PATH
setting is. On mine, this is what it reads:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

If the Windows\system32 folder isn't shown in the path, PING and other
commands will not run.

To change this, right-click on My Computer and choose Properties. then
Advanced, and click on Environment Variables. In the lower section,
highlight the PATH setting and choose Edit. On mine, the setting is

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

HTH
-pk
 
N

NewScience

What is in the C:\PROGRAM FILES\COMPAQ\COMPAQ MANAGEMENT
AGENTS\DMI\WIN32\BIN folder?

Any applications with the same name as DOS commands or Windows commands,
will take precedent from there.

Is there a cmd.* application?
 
G

Guest

Thanks for your reply's. After I asked this question, I did some more
searching and I think I have this problem fixed. The problem definitly
seemed to be in the path. I changed the path to read

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\Wbem.

This seemed to work, although it took a re-start to work.

Thanks again
Kyle
 
N

NewScience

Good for you. However, I would still evaluate what is in that folder. You
may need it some day if you ever have to use the Compaq Management tools and
they need that foler in the PATH environment variable.
 

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