1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-01 03:30:35 +08:00

Added admin elevation check again

- Some users are reporting a lot of permission issues.
This commit is contained in:
whoamikyo
2020-06-25 12:57:06 -03:00
parent 75fd7aee0d
commit 0c212556c9
2 changed files with 53 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
@SETLOCAL EnableExtensions EnableDelayedExpansion
@echo off
pushd "%~dp0"
title ALAS run
SET ADB=%~dp0python-3.7.6.amd64\Lib\site-packages\adbutils\binaries\adb.exe
SET PYTHON=%~dp0python-3.7.6.amd64\python.exe
@@ -7,6 +8,21 @@ SET CMD=%SystemRoot%\system32\cmd.exe
SET LMESZINC=https://github.com/LmeSzinc/AzurLaneAutoScript.git
SET WHOAMIKYO=https://github.com/whoamikyo/AzurLaneAutoScript.git
:: -----------------------------------------------------------------------------
goto check_Permissions
:check_Permissions
echo Administrative permissions required. Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed.
pause >nul
goto continue
) else (
echo Failure: Current permissions inadequate.
)
pause >nul
:: -----------------------------------------------------------------------------
:continue
call %ADB% kill-server > nul 2>&1
set SCREENSHOT_FOLDER=%~dp0screenshots