Update configure_client

This commit is contained in:
fatsbrown
2024-09-05 13:05:54 -03:00
committed by GitHub
parent 740b3101fd
commit 100bf5be09
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ TITLE configure_client
ECHO Configuring Zwift client to use zoffline
ECHO.
NET SESSION >nul 2>&1 || ( PowerShell start -verb runas '%~0' & EXIT /B )
NET SESSION >nul 2>&1 || ( PowerShell start -verb runas '"%~0"' & EXIT /B )
CD /D "%~dp0"
SET HOSTS="%WINDIR%\system32\drivers\etc\hosts"
COPY %HOSTS% %HOSTS%.bak >nul
+1 -1
View File
@@ -1,7 +1,7 @@
@ECHO OFF
TITLE disable_zoffline
NET SESSION >nul 2>&1 || ( PowerShell start -verb runas '%~0' & EXIT /B )
NET SESSION >nul 2>&1 || ( PowerShell start -verb runas '"%~0"' & EXIT /B )
SET HOSTS="%WINDIR%\system32\drivers\etc\hosts"
COPY %HOSTS% %HOSTS%.bak >nul