From 32a945108ed427f38ed47f7a4c778138a63df780 Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Sun, 13 Oct 2024 00:02:49 -0700 Subject: [PATCH] Update Enable GamesDows v2 NEW OCT-12-2024.bat --- Enable GamesDows v2 NEW OCT-12-2024.bat | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Enable GamesDows v2 NEW OCT-12-2024.bat b/Enable GamesDows v2 NEW OCT-12-2024.bat index 0338ca9..3344e0a 100644 --- a/Enable GamesDows v2 NEW OCT-12-2024.bat +++ b/Enable GamesDows v2 NEW OCT-12-2024.bat @@ -25,18 +25,20 @@ echo Creating LaunchSteamAsAdmin.vbs script :: Create VBScript to launch Steam as admin and set the shell to Steam ( -' Define Steam path (adjust if different) -steamPath = "C:\Program Files (x86)\Steam\Steam.exe" + echo ' Define Steam path (adjust if different) + echo steamPath = "C:\Program Files (x86)\Steam\Steam.exe" + echo + echo ' Define arguments for Steam (optional) + echo steamArguments = "-bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" + echo + echo ' Execute PowerShell command to launch Steam with elevated privileges + echo CreateObject("WScript.Shell").Run "powershell -ExecutionPolicy Bypass -NoProfile -Verb RunAs -command """" ^& steamPath ^& " " ^& steamArguments ^& """"", 0, True + echo + echo ' Exit the script after launching Steam + echo WScript.Quit +) > LaunchSteamAsAdmin.vbs -' Define arguments for Steam (optional) -steamArguments = "-bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" -' Execute PowerShell command to launch Steam with elevated privileges -CreateObject("WScript.Shell").Run "powershell -ExecutionPolicy Bypass -NoProfile -Verb RunAs -command \"" & steamPath & " " & steamArguments & "\"", 0, True - -' Exit the script after launching Steam -WScript.Quit -) echo Creating RunBatchSilently.vbs script