Advertisement
Guest User

Untitled

a guest
Apr 14th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @ECHO off
  2. set USERNAME=1444000341
  3. set PASSWORD=20140303
  4. set DIALUPNAME=biznet
  5. set IPTOPING=8.8.8.8
  6. set DELAYINSECOND=120
  7. :loop
  8. echo Waiting %DELAYINSECOND% seconds...
  9. sleep %DELAYINSECOND%
  10. echo Checking Line NOW...
  11. ping -l 1 -w 5000 %IPTOPING% | find /I "TTL=" > NUL
  12. if errorlevel 1 goto dced
  13. echo Your Internet is OK !!
  14. goto loop
  15. :dced
  16. echo Your Internet is DOWN !! ..Start Re-dialling process NOW...
  17. rasdial %DIALUPNAME% /disconnect
  18. echo LOG to Disconnected.txt...
  19. sleep 10
  20. verify >nul
  21. echo %time% %date% >> Disconnected.txt
  22. echo Re-dialling NOW...
  23. :redial
  24. rasdial %DIALUPNAME% %USERNAME% %PASSWORD% | find /I "Remote Access error"
  25. if errorlevel 1 goto loop
  26. echo can't connect, wait %DELAYINSECOND% seconds...
  27. sleep %DELAYINSECOND%
  28. goto redial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement