Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 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 1 (
  23. @echo Mamo Funktioniert nicht, repeat
  24. choice /n /d y /t 15
  25. SETLOCAL ENABLEDELAYEDEXPANSION
  26. C:
  27. cd \Program Files\GnuWin32\bin
  28. 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"
  29. @echo OFF
  30. @findstr /c "mamo_funktioniert_gut" "C:\Program Files\GnuWin32\bin\mamo.txt" >nul 2>&1
  31. if !errorlevel! EQU 1 (
  32. @echo Funktioniert auch beim 2, Versuch nicht, reconnect
  33. choice /n /d y /t 30
  34. endlocal
  35. GOTO CONNECT
  36. ) else (
  37. @echo Mamo Funktioniert
  38. @del "C:\Program Files\GnuWin32\bin\mamo.txt"
  39. endlocal
  40. )
  41. ) else (
  42. @echo Mamo Funktioniert
  43. @del "C:\Program Files\GnuWin32\bin\mamo.txt"
  44. )
  45. choice /n /d y /t 3600
  46. goto test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement