1.

Solve : cmd.exe not functional?

Answer»

The cmd.exe in my pc is not functioning. Every time I enter a valid dos prompt and press enter, the next line will show (name of the command) is not recognezed as an internal or external command, operable program or batch file. I cannot recall if anything has been changed before that.

Any suggestion of fixing it?

My OS is Win XP Professional.

HenryhauwQuote

The cmd.exe in my pc is not functioning. Every time I enter a valid dos prompt and press enter, the next line will show (name of the command) is not recognezed as an internal or external command, operable program or batch file. I cannot recall if anything has been changed before that.

Any suggestion of fixing it?

My OS is Win XP Professional.


Henryhauw


Even with something LIKE dir ?
Try that, post back .... what happened?



Next, try path , then hit enter. What happened? Post back here what appears on screen.



Sorry. Some of the commands such as dir , path, are ok. But some are not functional.

Below are some examples copied for the cmd dos page:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Hauw.COMPUTER>path
PATH=Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

C:\Documents and Settings\Hauw.COMPUTER>dir
Volume in DRIVE C has no label.
Volume Serial Number is 44B8-45B7

DIRECTORY of C:\Documents and Settings\Hauw.COMPUTER

07/15/2006 06:28 PM .
07/15/2006 06:28 PM ..
12/24/2006 05:13 PM .housecall6.6
07/15/2006 06:06 PM Start Menu
07/16/2006 09:44 PM My Documents
07/16/2006 09:44 PM Favorites
07/15/2006 06:06 PM Desktop
03/15/2007 12:02 AM 4,456,448 ntuser.dat
07/30/2006 12:27 AM Contacts
01/23/2007 09:54 PM boran-remover
02/25/2007 05:17 PM 0 getservice.txt
2 File(s) 4,456,448 BYTES
9 Dir(s) 2,679,857,152 bytes free

C:\Documents and Settings\Hauw.COMPUTER>ipconfig
'ipconfig' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Hauw.COMPUTER>ping 127.1.1.0
'ping' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Hauw.COMPUTER>help
'help' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Hauw.COMPUTER>cd..\

C:\Documents and Settings>cd..

C:\>

Any clue?

HenryHauwQuote

- - -

C:\Documents and Settings\Hauw.COMPUTER>path
PATH=Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

- - -

C:\Documents and Settings\Hauw.COMPUTER>ipconfig
'ipconfig' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Hauw.COMPUTER>ping 127.1.1.0
'ping' is not recognized as an internal or external command,
operable program or batch file.


Any clue?



Use the Search within WinXP... MAYBE it is called Find .
Search all your hard drives when you search.

Have it look for ipconfig . If and when it finds it, note the
directory.

Same for ping .


Now compare those directories to those listed in your path. See them there, as the result of your Path command? They are seperated by semi-colons.

When you execute a command, 'dos' first looks in the current directory for it. If not found, 'dos' then searchs the directories listed in the path variable. If it finds it, it runs it. If not, it reports back to you that the command was not found - which is what you are seeing.

In other words, something like ping must be in the path, or you must be in the same directory with it to run it.

I don't know about WinXP, but I would expect to find ping.exe
in C:\Windows .
According to your report, that directory is in your path.
So, ping should run..... if it exists there. So I'm wondering why it is not there. We'll find out if it exists, and where, when you search all your hard drives for it.



I think both Ping and Ipconfig are normally in the C:\WINDOWS\System32\ folder.I have run search. My ping, ipconfig and help are in several directories. One of them is C:\windows\system32. After I copied them to C:\windows, they run ok. I wonder why they were missing from C:\windows folder and how many more commands have been affected.

Anyway, Many thanks.

Henryhauw


Discussion

No Comment Found