Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. :connect
  2. @echo off
  3. C:
  4. taskkill /f /im explorer.exe
  5. start explorer
  6. netsh interface set interface name="Local Area Connection 2" admin=disabled
  7. netsh interface set interface name="Local Area Connection 2" admin=enabled
  8. ipconfig /renew
  9. choice /n /d y /t 15
  10. :test
  11. taskkill /f /im iexplore.exe
  12. taskkill /f /im firefox.exe
  13. cd \Program Files\Mozilla Firefox
  14. start firefox.exe
  15. choice /n /d y /t 30
  16. SETLOCAL
  17. C:
  18. cd \Program Files\GnuWin32\bin
  19. wget.exe --timeout=100 --tries=1 "http://127.0.0.1:59990/mozrepl.php?url=http://www.internet.ch/mamo_check.php" -O "mamo.txt"
  20. @echo OFF
  21. @findstr /c "mamo_funktioniert_gut" "C:\Program Files\GnuWin32\bin\mamo.txt" >nul 2>&1
  22. if %ERRORLEVEL% EQU 0 (
  23. @echo Mamo Funktioniert
  24. @del "C:\Program Files\GnuWin32\bin\mamo.txt"
  25. ) else (
  26. @echo Mamo Funktioniert nicht, repeat
  27. choice /n /d y /t 15
  28. SETLOCAL ENABLEDELAYEDEXPANSION
  29. C:
  30. cd \Program Files\GnuWin32\bin
  31. wget.exe --timeout=100 --tries=1 "http://127.0.0.1:59990/mozrepl.php?url=http://www.internet.ch/mamo_check.php" -O "mamo.txt"
  32. @echo OFF
  33. @findstr /c "mamo_funktioniert_gut" "C:\Program Files\GnuWin32\bin\mamo.txt" >nul 2>&1
  34. if !errorlevel! EQU 0 (
  35. @echo Mamo Funktioniert
  36. @del "C:\Program Files\GnuWin32\bin\mamo.txt"
  37. endlocal
  38. ) else (
  39. @echo Funktioniert auch beim 2, Versuch nicht, reconnect
  40. choice /n /d y /t 30
  41. endlocal
  42. GOTO CONNECT
  43. )
  44. )
  45. choice /n /d y /t 3600
  46. goto test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement