Update Enable GamesDows v2.bat

This commit is contained in:
jazir5 2024-10-12 21:54:39 -07:00 committed by GitHub
parent 3574869815
commit 363a5cc146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,16 +60,16 @@ echo Creating DelayedExplorerStart.bat script
echo Create the DelayedExplorerStart.bat script in the Steam folder echo Create the DelayedExplorerStart.bat script in the Steam folder
( (
echo @echo off echo @echo off
echo Check if user is logged on echo REM Check if user is logged on
echo query user ^| find /i "%USERNAME%" ^>nul echo query user ^| find /i "%USERNAME%" ^>nul
echo if ERRORLEVEL 1 exit echo if ERRORLEVEL 1 exit
echo Set Shell back to Explorer echo REM 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 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 timeout /t 20 /nobreak ^>nul
echo start C:\Windows\explorer.exe echo start "" "%EXPLORER_PATH%"
echo timeout /t 10 /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 echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f
) > "%SCRIPT_PATH%" ) > "%SCRIPT_PATH%"
echo Create XML file for the scheduled task echo Create XML file for the scheduled task