From bcb58394747ad4cc0148f2670bcd9a62faa622cf Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Sat, 22 Jun 2024 22:52:30 -0700 Subject: [PATCH] Update Enable GamesDows V1.bat --- Enable GamesDows V1.bat | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/Enable GamesDows V1.bat b/Enable GamesDows V1.bat index 1c7517b..91ab21c 100644 --- a/Enable GamesDows V1.bat +++ b/Enable GamesDows V1.bat @@ -1,31 +1,13 @@ @echo off -SETLOCAL EnableExtensions EnableDelayedExpansion - -:: Define paths and parameters -SET "STEAM_FOLDER=C:\Program Files (x86)\Steam" -SET "STEAM_PATH=%STEAM_FOLDER%\Steam.exe" -SET "STEAM_ARGS=-bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" -SET "EXPLORER_PATH=C:\Windows\explorer.exe" -SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -SET "VALUE_NAME=Shell" -SET "SCRIPT_NAME=DelayedExplorerStart.bat" -SET "SCRIPT_PATH=%STEAM_FOLDER%\%SCRIPT_NAME%" +SETLOCAL EnableExtensions echo Setting Steam Big Picture as default shell -:: Set Steam Big Picture as the default shell -REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "\"%STEAM_PATH%\" %STEAM_ARGS%" /f - -:: Verify if the registry was set correctly -REG QUERY "%KEY_NAME%" /v %VALUE_NAME% -IF NOT "%ERRORLEVEL%"=="0" ( - echo Failed to set Steam as the default shell. - pause - exit /b 1 -) - -echo Steam set as default shell successfully: -REG QUERY "%KEY_NAME%" /v %VALUE_NAME% +echo Set Steam Big Picture as the default shell +SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" +SET "VALUE_NAME=Shell" +SET "STEAM_PATH=C:\Program Files (x86)\Steam\Steam.exe -bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" +REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%STEAM_PATH%" /f @echo off @@ -49,7 +31,7 @@ echo Set Shell back to Explorer echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f echo timeout /t 20 /nobreak ^>nul echo start C:\Windows\explorer.exe -echo timeout /t 5 /nobreak ^>nul +echo timeout /t 10 /nobreak ^>nul echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f ) > "%SCRIPT_PATH%" @@ -74,7 +56,7 @@ IF EXIST "%XML_PATH%" DEL "%XML_PATH%" ( echo ^ -echo ^ +echo ^ echo ^ echo ^2020-01-01T00:00:00^ echo ^"%USERNAME%"^