Skip to content

Commit

Permalink
Update configure_client
Browse files Browse the repository at this point in the history
  • Loading branch information
fatsbrown authored Sep 5, 2024
1 parent 740b310 commit 100bf5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/configure_client.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/disable_zoffline.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 100bf5b

Please sign in to comment.