Computer Hope

Internet & Networking => Networking => Topic started by: Learning Boy on September 16, 2008, 04:49:57 AM

Title: ping command
Post by: Learning Boy on September 16, 2008, 04:49:57 AM
hey! can any one tell me that how can i use ping command
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 04:50:42 AM
In Command Prompt?

Ping [website]

For example: ping www.google.com
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 05:15:23 AM
no i want to ask how i can pinging the network i want to check the connectivity of my network and also the statistics of ping im tring in this way start > Run > cmd > type "ping" but its not working and getting this response ping is not recognized as an intrnal and external command, operable program or batch file.
Title: Re: ping command
Post by: senthilvalli on September 16, 2008, 05:22:25 AM
your LAN cable is connect or disconnect? ???
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 05:24:42 AM
it is connected
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 05:25:42 AM
In Command Prompt, type ping /? and post the results.

What version of windows?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 05:30:07 AM
my version is 5.1.2600 the result is same carbon r u mean type it & press enter
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 05:31:48 AM
Yep.
Title: Re: ping command
Post by: Computer Hope Admin on September 16, 2008, 05:33:44 AM
5.1.2600 is the command version. Try typing: "ping /?" if you get an error similiar to the below example.

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

It's likely the command has been disabled as part as your setup since it should be part of the default install for Windows. If you're on a school computer or work computer, it's likely the admin has disabled it.

Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 05:44:37 AM
ok then how can i enable it
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 05:47:14 AM
ok then how can i enable it

Quick Question, is this at school or work?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 05:57:09 AM
what do u mean carbon I'm asking because i want to learn to operate
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 06:05:24 AM
Can you check to see if the file called ping (or ping.exe) is in C:\Windows\System32.
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 06:19:50 AM
there are two files in system32 folder one is ping and other is ping6
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 06:21:12 AM
All right.

In Command Prompt, type the following. (press Enter after each line)

Code: [Select]
cd "C:\windows\system32"
ping /?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 06:30:50 AM
thanks for ur help carbon but before i Proceed i want to ask that after enable it can i disable it and is this operation can effect my network or computer
once again thanks for replying my questions
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 06:36:34 AM
First, we have to see if the command even works. Then we can view our options.

As for effecting your computer or network performance, ping won't do anything of the sort.
All it does is look for a host or domain and sees how long it takes to get a reply.
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 07:00:41 AM
its really work! thanks carbon
thank u very much
tell me that is now the ping is enable is it works in a normal way or i have to check it always by this way
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 07:10:21 AM
Try re-opening command prompt and type ping /?

Do you still get the message saying it cannot find the file?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 07:15:58 AM
yes im still getting that message
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 07:19:51 AM
Strange....I will do more searching on the problem but try this first:

In Command Prompt, type ipconfig and press Enter.
Do you get the same error message?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 07:27:09 AM
yes by typing ipconfig i get the same message.
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 07:35:48 AM
All right. This time type echo %path% and press Enter.
What do you get?
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 07:47:18 AM
i get this message    c:\orant\bin;c:\dev\bin
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 07:54:58 AM
i get this message    c:\orant\bin;c:\dev\bin
Ok, I know for sure this isn't right.

Just to make sure, Is this Windows XP?

If it is Windows XP, follow these instructions:
Right Click My computer and go to Properties. Click the Advanced tab up at the top.
Click on the Environment Variables button and, in the second list, scroll down until you see a variable called Path.
Select it and click Edit.
Change the Variable Value to %SystemRoot%\system32;%SystemRoot%;
Click OK.
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 08:01:06 AM
I'm using xp pro may i ask what happen when i fellow Ur steps
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 08:03:51 AM
Right now, your CMD (Command Prompt) is looking at the directories c:\orant\bin and c:\dev\bin for the commands you are inputting (like ipconfig and ping).
CMD should be looking at C:\Windows and C:\Windows\System32 (%SystemRoot%\system32;%SystemRoot%;) for the commands.
If you navigate to that location, you will see all the files like ping and ipconfig.

By following my steps, you will change where CMD is looking for the files.
Title: Re: ping command
Post by: Learning Boy on September 16, 2008, 08:09:44 AM
OK i will do it thank u for Ur guide  :)
Title: Re: ping command
Post by: Carbon Dudeoxide on September 16, 2008, 08:13:45 AM
Good Luck!
Title: Re: ping command
Post by: Learning Boy on September 18, 2008, 05:48:53 AM
yes its works thanks the problem is solved
Title: Re: ping command
Post by: Carbon Dudeoxide on September 18, 2008, 05:49:52 AM
Good Work. :)

(http://www.fileupyours.com/files/191176/thumbs-up.jpg)