From 38892bc2e57a540c5a40143d86c0d7af93c505fd Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Sat, 28 Dec 2024 01:58:05 -0800 Subject: [PATCH] Update Enable GamesDows Steam V3.bat --- Enable GamesDows Steam V3.bat | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Enable GamesDows Steam V3.bat b/Enable GamesDows Steam V3.bat index aed47b6..fd9b4a7 100644 --- a/Enable GamesDows Steam V3.bat +++ b/Enable GamesDows Steam V3.bat @@ -40,21 +40,13 @@ echo Create the DelayedExplorerStart.bat script in the Steam folder ( echo @echo off echo rem Check if user is logged on -whoami ^| find /i "\%%USERNAME%%" ^>nul +whoami ^| find /i "\%USERNAME%" ^>nul echo if ERRORLEVEL 1 exit echo rem Set Shell back to Explorer echo REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%%EXPLORER_PATH%%" /f echo timeout /t 20 /nobreak ^>nul - echo rem Launch Explorer minimized without stealing focus by using a temporary VBScript -echo set "TempVBS=%%TEMP%%\LaunchExplorerMinimized.vbs" -echo (echo Set WshShell = CreateObject("WScript.Shell"))>"%%TempVBS%%" -echo (echo ' 7 = Minimized ^& no focus) >>"%%TempVBS%%" -echo (echo WshShell.Run "explorer.exe", 7, False)>>"%%TempVBS%%" -echo (echo Set WshShell = Nothing)>>"%%TempVBS%%" -echo cscript //nologo "%%TempVBS%%" -echo del "%%TempVBS%%" - +mshta "vbscript:CreateObject(""Wscript.Shell"").Run(""explorer.exe"",7,false)(window.close)" echo timeout /t 10 /nobreak ^>nul echo REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%%STEAM_PATH%%" /f ) > "%SCRIPT_PATH%"