From 8ca56ed459c34c6263147d932027ed61c3efd31d Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:01:28 -0700 Subject: [PATCH] Update Enable GamesDows Playnite.bat --- Enable GamesDows Playnite.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Enable GamesDows Playnite.bat b/Enable GamesDows Playnite.bat index 08a051d..ad6a2c7 100644 --- a/Enable GamesDows Playnite.bat +++ b/Enable GamesDows Playnite.bat @@ -6,11 +6,13 @@ echo Setting Playnite as default shell SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "VALUE_NAME=Shell" SET "PLAYNITE_FOLDER=%LOCALAPPDATA%\Playnite" -SET "PLAYNITE_PATH=%LOCALAPPDATA%\Playnite\Playnite.FullscreenApp.exe +SET "PLAYNITE_PATH=%LOCALAPPDATA%\Playnite\Playnite.FullscreenApp.exe" REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%PLAYNITE_PATH%" /f SET "SCRIPT_NAME=DelayedExplorerStart.bat" SET "SCRIPT_PATH=%PLAYNITE_FOLDER%\%SCRIPT_NAME%" SET "EXPLORER_PATH=C:\Windows\explorer.exe" +SET "VBS_NAME=RunBatchSilently.vbs" +SET "VBS_PATH=%PLAYNITE_FOLDER%\%VBS_NAME%" @echo off SETLOCAL EnableExtensions EnableDelayedExpansion @@ -36,10 +38,8 @@ echo %VBS_PATH% echo Creating RunBatchSilently.vbs script -:: Create VBScript to run the batch file silently +rem Create VBScript to run the batch file silently @echo off -SET "VBS_NAME=RunBatchSilently.vbs" -SET "VBS_PATH=%PLAYNITE_FOLDER%\%VBS_NAME%" echo Set WshShell = CreateObject("WScript.Shell") > "%VBS_PATH%" echo WshShell.Run chr(34)^&"%SCRIPT_PATH%"^&chr(34), 0, True >> "%VBS_PATH%" echo Set WshShell = Nothing >> "%VBS_PATH%"