Computing.Net > Forums > Windows XP > Command Line lacking capabilities?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Command Line lacking capabilities?

Reply to Message Icon

Name: ALTenDeW
Date: November 13, 2004 at 15:12:57 Pacific
OS: Windows XP
CPU/Ram: 1.80 GHz, 256 MB of RAM
Comment:

Hi.. for some odd reason when I enter command.com.. and type in

ping google.com

it says:
`PING` is not a internal or external command.

That is the same for all the `net` commands also, but the basic ones like `cd` work.

Andew Rosolino




Response Number 1
Name: per
Date: November 13, 2004 at 15:18:45 Pacific
+1
Reply:

try start-run-type CMD,enter. try ping google.com.

Please post back within 24 hours or I will delete the post from my follow up list. Thanks. It would be a courtesy if you would post back and let us know if the fix worked or not.



Response Number 2
Name: ALTenDeW
Date: November 13, 2004 at 16:01:02 Pacific
+1
Reply:

Same error

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

Andew Rosolino



Response Number 3
Name: HiJinx
Date: November 13, 2004 at 16:06:54 Pacific
+1
Reply:

Ping isn't a command, it's a program and you should be able to call it from within command.com. Do a search for ping.exe to make sure it's actually there (should be in the windows\system32 directory).

If it's there, you may have a problem with your PATH. Does the following command work?:

%systemroot%\system32\ping.exe www.google.com




Response Number 4
Name: ALTenDeW
Date: November 13, 2004 at 16:22:44 Pacific
+1
Reply:

Ok yes

%systemroot%\system32\ping.exe www.google.com

This works.. so I guess the path isn't set for that command, now can you guide me where these paths are met?

Andew Rosolino



Response Number 5
Name: Mechanix2Go
Date: November 13, 2004 at 16:31:46 Pacific
+1
Reply:

set
[enter]

M2



Related Posts

See More



Response Number 6
Name: ALTenDeW
Date: November 13, 2004 at 16:36:00 Pacific
+1
Reply:

Umm that didn't help much... I did this

set ping=%systemroot%\system32\ping.exe

and it still didnt work, I dont know what im doing, also im afraid there is just a load of other commands missing like I said earliar the net commands.

Andew Rosolino



Response Number 7
Name: HiJinx
Date: November 13, 2004 at 16:40:21 Pacific
+1
Reply:

Right-click on My Computer and get Properties, then click on the Advanced tab. Click the 'Environment Variables' button on the bottom. In the new dialog box, in the lower section (System Variables), find 'Path', highlight it, then click the edit button. The following two strings should be in there:

%systemroot%
%systemroot%\system32

If they're not there, add them in, separated by semicolons(;). If there is already text in there, put a semicolon at the end before adding the two above.



Response Number 8
Name: ALTenDeW
Date: November 13, 2004 at 18:30:21 Pacific
+1
Reply:

This is in there..

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\NMapWin\\bin;C:\hl

Andew Rosolino



Response Number 9
Name: HiJinx
Date: November 13, 2004 at 22:22:58 Pacific
+1
Reply:

A shame. If it had been missing, it would have made for an easy fix. Just curious, if you type 'path' from the command prompt, does c:\windows\system32 show up in there?

The only other thing I can think of right now is to to check what's in PATHEXT (in the same list where you were looking at PATH). Make sure .exe is in that list.

If I come across anything else to try, I'll post again.



Response Number 10
Name: ALTenDeW
Date: November 14, 2004 at 05:15:15 Pacific
+1
Reply:

Everything you mentioned works :-(

Andew Rosolino



Response Number 11
Name: HiJinx
Date: November 14, 2004 at 12:26:46 Pacific
+1
Reply:

I came across two more things you may want to check.

First, use regedit (start>run, type in regedit), and navigate to the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control \SessionManager\Environment. Find the path entry and verify that its 'type' is REG_EXPAND_SZ, not REG_SZ. Post back if it's not the type it should be.

Second, back where you were looking at the PATH data before, in the upper section, under 'User Variables', check what's in the path there. If there is anything there, copy and paste it into a text file. Save the text file, and then delete the data that was in there. Reboot the system and see if there's a change. If not, go back to the text file, get the data and paste it back in from where you deleted it. If this does work, you may have to move some of that info into the system variable for path instead of the user one.

Also, if you know that this problem is recent, you could try doing a system restore to a point before when it occurred.

If none of this works, you'll have to hope someone else jumps in :).



Response Number 12
Name: ALTenDeW
Date: November 14, 2004 at 13:52:36 Pacific
+1
Reply:

Its REG_SZ so how do I fix it :-)

Andew Rosolino



Response Number 13
Name: HiJinx
Date: November 14, 2004 at 14:09:50 Pacific
+1
Reply:

OK, first go into your System Restore and create a restore point (just in case).

Then go back into the registry key and double click on 'path'. Copy whatever's in there and paste it into notepad and save. Then right click on the 'path' value and delete it.

Up top, click on Edit, then go to New>Expandable Sting Value. Call it Path. Then double click on it and paste in what you copied from the old path value.

Reboot and try ping again from the command prompt.

If it's still not working, try the second thing I mentioned in my last post.



Response Number 14
Name: grobin
Date: December 9, 2004 at 13:09:36 Pacific
+1
Reply:

Thanks HiJinx...you're the man. I Googled with the 'ping' error message and your responses came up. Your suggestions fixed the problem on two computers that had this trouble. Best wishes, dude. Appreciate it.



Reply to Message Icon

Auto Correct on Internet ... TMPGenc help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Google Ads



Results for: Command Line lacking capabilities?

Command Line lacking capabilities? www.computing.net/answers/windows-xp/command-line-lacking-capabilities/127185.html

command line proxy server? www.computing.net/answers/windows-xp/command-line-proxy-server/160928.html

Ghost Command Line Problem www.computing.net/answers/windows-xp/ghost-command-line-problem/147616.html