General discussion

Help!!! My CMD field does not recognize commands anymore

Hello everybody....

I was doing some work on my pc... it has XP on it and everything works fine but when I go to my command window it no longer recognizes commands.

Ipconfig
Netstat
route print
Ping
Traceroute
and commands of that nature are not recognized as commands...I evcen downloaded Powershell and cant get basic commands to work. Any Ideas what the hell happened to my box?

CMD line output below

=======================================================================

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

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

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

C:\Documents and Settings\KEYPINITREEL>route print
'route' is not recognized as an internal or external command,
operable program or batch file.

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

Discussion is locked
Follow
Reply to: Help!!! My CMD field does not recognize commands anymore
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Help!!! My CMD field does not recognize commands anymore
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Comments
- Collapse -
What is your PATH?

Type PATH, press enter and make sure it includes a path to those utilities.

Bob

- Collapse -
Heres what I got...

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

C:\Documents and Settings\KEYPINITREEL> path
PATH=C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\QuickTime\QTSyst
em\;C:\WINDOWS\system32\WindowsPowerShell\v1.0

- Collapse -
In regards to the Path command

Ive never used the path command.. I typed in "Path ipconfig" and it came up blank.

- Collapse -
path=c:\windows\command

I typed in "path=c:\windows\command" and it came up blank as well

- Collapse -
Your path is looped. (bad)
- Collapse -
thanks Bob

I have found my NETSTAT.exe and IPCONFIG.exe's... I can also see that the paths to them and frankly all of my other commands had been deleted. I can see how to set up new paths via the system properties window... I believe with a little research and practice I am now on the right path to figuring this out. I appreciate everything a ton. Happy

- Collapse -
If it doesn't work out, just post back with this info...

Your PATH and the directory that these things are in. That way I can double check the work.

Best of luck and have a speedy recovery.

Bob

- Collapse -
heres what im doing...

my Ipconfig file is in my system 32 folder....

So my path should be "C:\WINDOWS\SYSTEM32\IPCONFIG"

Now what I do is go to my system properties box... and for system variable select new... name the path IPCONFIG... then specify the path with the string I typed in above... C:\WINDOWS\SYSTEM32\IPCONFIG


Now i have typed in the variable and the string under my profile and under system but I still can not get it to execute in the CMD window....

Also.. I have just learnbed that if you type Path anything into your command window.. it deletes ALL OF THE PATHS! woah boy....good googgely moogely...

- Collapse -
I'd use this one.

C:\WINDOWS\SYSTEM32

The path only needs the directory to search and would not include a filename.

Bob

- Collapse -
ILL TRY THAT

One new thing I've noticed is that I can open the CMD window... drag and drop my executables from my System32 folder into it...and execute them like that.

Ill try to fix my paths now though... this is good stuff

- Collapse -
ugghhh

No dice... Ive typed in the file name... copy and pasted the path with \ on the end after SYSTEM32 and without...


I have added the command under user variables and system variables.... Should I leave only Temp and TMP in the user variable section and add the commands to the system variable section?

Let me see what happens...

- Collapse -
whelp

spectacular failure...

- Collapse -
I can't help.

I don't know what your current path looks like.

- Collapse -
HMMM

this is what I have
========================================================================

System Variables:

IPCONFIG C:\WINDOWS\SYSTEM32\

========================================================================

C:\Documents and Settings\KEYPINITREEL>Path
PATH=ipconfig

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

=======================================================================

- Collapse -
Here's a proper path.

C:\WINDOWS\SYSTEM32

- Collapse -
My PATH is as follows:

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

The Wbem-part seems to be related to WMI (Windows Management Instrumentation). Maybe it's necessary because this is a business PC in a business network.

I don't have GTK, Quicktime and Powershell here, so there's no need at all to add those folders to the path. But it seems the installers of GTK, Quicktime and Powershell thought otherwise. If you agree with those, simply add them to the path above so it becomes
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0

I think you can leave out the Wbem one.

Hope this helps.


Kees

- Collapse -
HEY IT WORKED

YOU ARE THE MAN! THANKS MUCH.


I COPY AND PASTED THE PATH YOU HAD INTO MY SYSTEM AND IT WORKED.I am relieved beyond words.... I will keep this in word pad and continue to research the subject.


=========================================================================

C:\Documents and Settings\KEYPINITREEL>ipconfig/all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Key2
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : hot.rr.com

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : hot.rr.com
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connecti
on
Physical Address. . . . . . . . . : 00-13-20-37-4E-E1
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.102
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : fe80::213:20ff:fe37:4ee1%4
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 24.93.41.125
24.93.41.126
fec0ShockedShocked:ffff::1%1

======================================================================
fec0ShockedShocked:ffff::2%1
fec0ShockedShocked:ffff::3%1
Lease Obtained. . . . . . . . . . : Tuesday, May 29, 2007 10:22:54 AM
Lease Expires . . . . . . . . . . : Wednesday, May 30, 2007 10:22:54 AM

Tunnel adapter Automatic Tunneling Pseudo-Interface:

Connection-specific DNS Suffix . : hot.rr.com
Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

Physical Address. . . . . . . . . : C0-A8-01-66
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : fe80::5efe:192.168.1.102%2
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : fec0ShockedShocked:ffff::1%1
fec0ShockedShocked:ffff::2%1
fec0ShockedShocked:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Disabled


======================================================================

Life is good again... Happy

- Collapse -
(NT) Glad I could help.
- Collapse -
In addition

I don't know if this will work,but I found this LINK

Instead of typing cmd.exe in the run box,try command.com

Tom

- Collapse -
You guys are great!

Thanks so much... I am about to head out to work and school...when I get back in later this evening, I will try all of the recommendations and give you all feedback on what works or doesn't.

This is a dam good learning experience.

CNET Forums