disable_zoffline.bat 335 B

12345678910111213141516
  1. @ECHO OFF
  2. TITLE disable_zoffline
  3. NET SESSION >nul 2>&1 || ( PowerShell start -verb runas '"%~0"' & EXIT /B )
  4. SET HOSTS="%WINDIR%\system32\drivers\etc\hosts"
  5. COPY %HOSTS% %HOSTS%.bak >nul
  6. ECHO Removing servers from hosts file
  7. TYPE %HOSTS%.bak | FINDSTR /V /I zwift > %HOSTS%
  8. ECHO.
  9. TASKKILL /F /IM ZwiftLauncher.exe >nul 2>&1
  10. PAUSE