mirror of
https://github.com/jazir555/GamesDows.git
synced 2025-06-06 15:47:22 +02:00
Update Enable GamesDows v2 NEW OCT-12-2024.bat
This commit is contained in:
parent
2206427fc0
commit
32a945108e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user