Advertisement
Guest User

Untitled

a guest
May 5th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ECHO OFF
  2.  
  3. IF NOT EXIST "C:\Program Files\Procare\Client\CheckInNet.exe" (
  4. echo Procare checkin client is not installed. Closing in 120 seconds...
  5. timeout /T 120
  6. ) ELSE (
  7. :loop
  8. echo -------------
  9. echo Checking if procare should be started. Checking if network is available...
  10.  
  11. :ping
  12. ping google.com -n 1 | find "TTL=" > nul
  13. IF errorlevel==1 (
  14. echo Network not available. Will try again...
  15. timeout /T 30 & goto ping
  16. )
  17.  
  18. echo Network is running. Starting procare checkin...
  19. "C:\Program Files\Procare\Client\CheckInNet.exe"
  20.  
  21. goto loop
  22. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement