mirror of
https://github.com/jazir555/GamesDows.git
synced 2025-06-05 07:07:23 +02:00
Update Enable GamesDows v2
This commit is contained in:
parent
f371b307f5
commit
6acf49d5f3
@ -22,14 +22,6 @@ SET "SCRIPT_PATH1=%STEAM_FOLDER%\%SCRIPT_NAME1%"
|
||||
SET "SCRIPT_PATH1=%STEAM_FOLDER%\%SCRIPT_NAME%"
|
||||
SET "EXPLORER_PATH=C:\Windows\explorer.exe"
|
||||
|
||||
:: Create VBScript to run the batch file silently
|
||||
@echo off
|
||||
SET "VBS_NAME1=RunSteamAsAdmin.vbs"
|
||||
SET "VBS_PATH1=%STEAM_FOLDER%\%VBS_NAME%"
|
||||
echo Set WshShell = CreateObject("WScript.Shell") > "%VBS_PATH1%"
|
||||
echo WshShell.Run chr(34)^&"%SCRIPT_PATH1%"^&chr(34), 0, True >> "%VBS_PATH1%"
|
||||
echo Set WshShell = Nothing >> "%VBS_PATH1%"
|
||||
|
||||
echo Creating StartSteamAsAdmin.bat script
|
||||
(
|
||||
echo @echo off
|
||||
@ -40,6 +32,14 @@ echo Set Steam As Admin
|
||||
echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f
|
||||
) > "%SCRIPT_PATH1%"
|
||||
|
||||
:: Create VBScript to run the batch file silently
|
||||
@echo off
|
||||
SET "VBS_NAME1=RunSteamAsAdmin.vbs"
|
||||
SET "VBS_PATH1=%STEAM_FOLDER%\%VBS_NAME1%"
|
||||
echo Set WshShell = CreateObject("WScript.Shell") > "%VBS_PATH1%"
|
||||
echo WshShell.Run chr(34)^&"%SCRIPT_PATH1%"^&chr(34), 0, True >> "%VBS_PATH1%"
|
||||
echo Set WshShell = Nothing >> "%VBS_PATH1%"
|
||||
|
||||
echo Create the DelayedExplorerStart.bat script in the Steam folder
|
||||
(
|
||||
echo @echo off
|
||||
|
Loading…
x
Reference in New Issue
Block a user