I am learning ping
utility in Windows 10 and when I try to run command in shell:
ping -c 3 example.com
I get the result:
Access denied. Option -c requires administrative privileges.
After executing from the administrator I get:
Bad value for option -c.
The command reference (ping /?
) says about this argument:
[-c compartment]
- Routing compartment identifier.
What does that mean? What values can this argument take?
However, -c
is not mentioned on the Microsoft website!
I also tried to use this command like this: ping -c google.com 8.8.8.8
. Output:
Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=127ms TTL=58
Reply from 8.8.8.8: bytes=32 time=57ms TTL=58
Reply from 8.8.8.8: bytes=32 time=57ms TTL=58
Reply from 8.8.8.8: bytes=32 time=57ms TTL=58
Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 57ms, Maximum = 127ms, Average = 74ms
There was no error, but the result is the same as the command ping 8.8.8.8
So, how do I use ping -c
correctly in Windows?