SaveText.Ru

Без имени
  1. @echo off
  2. set a=1
  3. :start
  4. echo Checking internet connection... %a%
  5. ping ya.ru |>nul find /i "TTL=" && goto int_yep || goto int_nope
  6.  
  7. :int_nope
  8. echo Internet - NON
  9. set /a a+=1
  10. timeout /t 3 /nobreak>nul
  11. goto start
  12.  
  13. :int_yep
  14. echo Internet - OK
  15. goto all_end
  16.  
  17. :all_end
  18. echo Complete...
  19. pause

Share with your friends:

Распечатать