#167935 - 26/06/2003 15:41
Windows XP error, Ping not recognized as a command
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
Anyone seen this before or have any idea how to fix it. I have no idea how it happened. In my network I can browse other XP machines, but nothing else (2000, 98) I haven't changed any network settings lately. I noticed this when trying to access my Tivo. I still get internet access... can hit my router, and have no problem with my empeg.
Attachments
166104-window.jpg (110 downloads)
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167936 - 26/06/2003 16:05
Re: Windows XP error, Ping not recognized as a command
[Re: Waterman981]
|
veteran
Registered: 08/05/2000
Posts: 1429
Loc: San Francisco, CA
|
Type "path" and hit enter... Do you have a path set to \windows\system32?
- Jon
|
Top
|
|
|
|
#167937 - 26/06/2003 16:08
Re: Windows XP error, Ping not recognized as a command
[Re: Waterman981]
|
carpal tunnel
Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
|
How did you go about getting that command prompt? On one machine I have, I get similar results if I just do Start->Run cmd, but if I bring it up from the shortcut on the start menu, it works ok.
Edited by Meatballman (26/06/2003 16:10)
_________________________
~ John
|
Top
|
|
|
|
#167938 - 26/06/2003 16:10
Re: Windows XP error, Ping not recognized as a command
[Re: jbauer]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
it's in there....
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167939 - 26/06/2003 16:11
Re: Windows XP error, Ping not recognized as a command
[Re: JBjorgen]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
I did do a run->cmd... but I get the same results either way.
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167940 - 26/06/2003 20:01
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
new poster
Registered: 15/05/2002
Posts: 16
Loc: Tampa, Florida
|
I know the $PATH has already been mentioned and you said the \windows\system32 directory was in there, but you might want to try running the commands with the full path anyway just to test. Something like:
\windows\system32\ping 192.168.1.1
The last time I saw something like this (on a 2000 box, so \winnt instead of \windows) that got it to work. No idea what causes it though.
-Magnus
_________________________
RioCar 40103779 '67 Mustang
|
Top
|
|
|
|
#167941 - 26/06/2003 20:57
Re: Windows XP error, Ping not recognized as a com
[Re: Magnus]
|
carpal tunnel
Registered: 23/09/2000
Posts: 3608
Loc: Minnetonka, MN
|
How about just do a search for ping.exe and see if the file is still there.
_________________________
Matt
|
Top
|
|
|
|
#167942 - 26/06/2003 23:24
Re: Windows XP error, Ping not recognized as a com
[Re: msaeger]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
Ok, so the files are there, I don't have a virus. It is using the %systemroot% variable, and when I do a start->run->cmd %systemroot% it does bring up c:\windows like it should. In my autoexec.bat it is appending one line to the path. Hrmm... as I am messing with this my path gets reset every time I either open or close the command window. If I set the path it all works... but reopen the window and the old path statement is back.
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167943 - 27/06/2003 04:44
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
journeyman
Registered: 12/01/2002
Posts: 84
Loc: Waardenburg, The Netherlands
|
It is using the %systemroot% variable, and when I do a start->run->cmd %systemroot% it does bring up c:\windows like it should. In my autoexec.bat it is appending one line to the path.
Are you sure the autoexec.bat is run when you open a command box? Or only when the system is started in DOS mode (does such a thing still exists in XP ?)
Hrmm... as I am messing with this my path gets reset every time I either open or close the command window. If I set the path it all works... but reopen the window and the old path statement is back.
Same behaviour in W2K, Linux terminal etc. Each time you open a command line session, the system starts with the defaults. Once leaving this session (e.g. with 'Exit') the local changes are lost.
You can try this by
1 opening a command box
2 check the Path
3 start a new child process ("command.exe") by typing that command on the prompt.
4 The path will be inherited from the previous process. You can change it here.
5 Leave this child session againg ("Exit")
6 Check the Path, it should be in the original state before your change.
_________________________
Empeg M2A Blue # 010101908 80Gb Empeg M2A Blue # 030102771 with backlight buttons - Need repair (IDE cable connection on main board) - volunteers?
|
Top
|
|
|
|
#167944 - 27/06/2003 09:08
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
journeyman
Registered: 16/02/2000
Posts: 94
Loc: UK - NE Wales
|
Have you tried setting the path in the 'My Computer' properties page, under Environment Variables on the Advanced tab? Mine was SET correctly, but I found that if I appended something like ";c:\" to it then it WORKED correctly!
Cheers.
|
Top
|
|
|
|
#167945 - 27/06/2003 16:43
Re: Windows XP error, Ping not recognized as a com
[Re: FlibblE]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
So that is where the path is set for each time you open the command prompt. Since something was screwed up I replaced every instance of %systemroot% with the actual path. Everything works now! Thanks for the help everyone!
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167946 - 27/06/2003 17:17
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
Mayhaps you should check your registry. The key that controls Systemroot is HKLM/Software/Microsoft/Windows/CurrentVersion
There's a string value for SystemRoot.
|
Top
|
|
|
|
#167947 - 28/06/2003 11:23
Re: Windows XP error, Ping not recognized as a com
[Re: lectric]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
I have no system root entry, only ones that refrence it. What is the string value I should enter, the name and type.
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167948 - 28/06/2003 11:48
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
The string is SystemRoot and the value is c:\windows. Remember, it's not a subkey, just a value. Better yet, just open this attachment. (Have to right click and save it first.)
Attachments
166377-SystemRoot.reg (212 downloads)
|
Top
|
|
|
|
#167949 - 28/06/2003 11:55
Re: Windows XP error, Ping not recognized as a com
[Re: lectric]
|
old hand
Registered: 14/02/2002
Posts: 804
Loc: Salt Lake City, UT
|
Cool! I placed %systemroot% back into my path and it works again. I wonder why it wasn't in the registry. Thanks for the help!
_________________________
-Michael
#040103696 on a shelf Mk2a - 90 GB - Red - Illuminated buttons
|
Top
|
|
|
|
#167950 - 28/06/2003 17:43
Re: Windows XP error, Ping not recognized as a com
[Re: Waterman981]
|
pooh-bah
Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
|
No problem and I'm rather curious too... I wonder if some spyware/trojan removed it.
|
Top
|
|
|
|
|
|