Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :connect
- @echo off
- C:
- taskkill /f /im explorer.exe
- start explorer
- netsh interface set interface name="Local Area Connection 2" admin=disabled
- netsh interface set interface name="Local Area Connection 2" admin=enabled
- ipconfig /renew
- choice /n /d y /t 15
- :test
- taskkill /f /im iexplore.exe
- taskkill /f /im firefox.exe
- cd \Program Files\Mozilla Firefox
- start firefox.exe
- choice /n /d y /t 30
- SETLOCAL
- C:
- cd \Program Files\GnuWin32\bin
- 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"
- @echo OFF
- @findstr /c "mamo_funktioniert_gut" "C:\Program Files\GnuWin32\bin\mamo.txt" >nul 2>&1
- if %ERRORLEVEL% EQU 0 (
- @echo Mamo Funktioniert
- @del "C:\Program Files\GnuWin32\bin\mamo.txt"
- ) else (
- @echo Mamo Funktioniert nicht, repeat
- choice /n /d y /t 15
- SETLOCAL ENABLEDELAYEDEXPANSION
- C:
- cd \Program Files\GnuWin32\bin
- 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"
- @echo OFF
- @findstr /c "mamo_funktioniert_gut" "C:\Program Files\GnuWin32\bin\mamo.txt" >nul 2>&1
- if !errorlevel! EQU 0 (
- @echo Mamo Funktioniert
- @del "C:\Program Files\GnuWin32\bin\mamo.txt"
- endlocal
- ) else (
- @echo Funktioniert auch beim 2, Versuch nicht, reconnect
- choice /n /d y /t 30
- endlocal
- GOTO CONNECT
- )
- )
- choice /n /d y /t 3600
- goto test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement