launch.bat 466 B

123456789101112131415161718192021
  1. SET hostspath=%windir%\System32\drivers\etc\hosts
  2. SET tmp_host=%windir%\temp\hosts
  3. @ECHO Moving host file to tmp location...
  4. COPY %hostspath% %tmp_host% /y >nul
  5. SET/p ip_address=<%~dp0\ip_address.txt
  6. ECHO .>>%hostspath%
  7. ECHO %ip_address% us-or-rly101.zwift.com secure.zwift.com cdn.zwift.com launcher.zwift.com >> %hostspath%
  8. START /d "C:\Program Files (x86)\Zwift" ZwiftLauncher.exe
  9. PAUSE
  10. @ECHO Moving host file back...
  11. COPY %tmp_host% %hostspath% /y >nul