title: Batch File progress spinning wheel
body: <p>I have been trying for days and can seem to get this to work. I found an example but it uses a (CryEcho) which will not work. I just wanted to add this to let the user know something is going on while im pinging IP addresses. I did find some code on here but it was confusing to me since im just starting to mess around with batch files for fun.</p>
  
  <p>Anyway, I wanted to have something that used something like the example below but with text like (Waiting...[spinner]). Thanks!</p>
  
  <pre><code>@echo off
  setlocal
  
  set COUNT=0
  set MAXCOUNT=10
  set SECONDS=1
  
  :LOOP
  title "\"
  call :WAIT
  title "|"
  call :WAIT
  title "/"
  call :WAIT
  title "-"
  if /i "%COUNT%" equ "%MAXCOUNT%" goto :EXIT
  set /a count+=1
  echo %COUNT%
  goto :LOOP
  
  :WAIT
  ping -n %SECONDS% 127.0.0.1 &gt; nul
  ping -n %SECONDS% 127.0.0.1 &gt; nul
  goto :EOF
  
  :EXIT
  title FIN!
  endlocal
  </code></pre>
  
  <p>AND I found this code as well:</p>
  
  <pre><code>@echo off
  rem Example showing how to use CryEcho to produce a spinning wheel to show activity.
  
  CryEcho Working ... 
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  call :SpinAlive
  call :DoSomeWork
  
  cryecho \s\nFinished.
  
  goto :eof
  
  :DoSomeWork
  ping -n 1 localhost &gt; nul
  goto :eof
  
  :SpinAlive
  if "%Spinner%" == "2" (cryecho \\\b) 
  if "%Spinner%" == "3" (cryecho -q "|"\b) 
  if "%Spinner%" == "4" (cryecho /\b set Spinner=0) else (cryecho -\b set Spinner=1)
  set /A Spinner=%Spinner%+1
  goto :eof
  </code></pre>