Windows Batch error: “'ping' is not recognized as an internal or external command operable program or batch file.”

前端 未结 3 1643
被撕碎了的回忆
被撕碎了的回忆 2021-01-20 17:03

I am trying to run this command in windows:

ping -n 5 127.0.0.1 > nul

I get the error:

\'ping\' is not recognized as an          


        
3条回答
  •  被撕碎了的回忆
    2021-01-20 17:23

    Hi to fix "ping" please follow below steps

    Go to Properties in My computer

    Advanced system settings ----->Advanced -----> Environment Variables Select 'PATH' from the list of system variables and edit and set PATH to c:\windows\system32 ; this will solve your problem.

    -----> if still u have a problem, do the below steps...

    Control Panel --> System and security --> Windows Firewall --> Advanced settings --> Inbound rules --> New rule --> custom rule

    in Protocol and ports: Protocol: ICMPv4 on the same panel go to customize, choose "Specific ICMP types", check the box "echo request"

    The rest is trivial; go to next... next... and save it.

    You should be done. This box responds ping from this point on.

    Cheers

    Prasad

提交回复
热议问题