title: Windows Batch error: "'ping' is not recognized as an internal or external command operable program or batch file."
body: <p>I am trying to run this command in windows:</p>
  
  <pre><code>ping -n 5 127.0.0.1 &gt; nul
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>'ping' is not recognized as an internal or external command operable 
  program or batch fie. 
  </code></pre>
  
  <p><strong>Why can't windows find ping?</strong>  Here is my script where it does not work:</p>
  
  <pre><code>@ECHO OFF
  
  ::set path
  SET path=M:\\5.bmp
  
  :findfile
  IF EXIST %path% (
      ECHO File found
  ) ELSE (
      ECHO File not found
      ping -n 5 127.0.0.1 &gt; nul
      goto findfile
  )
  </code></pre>