Added of checking adminstrator rights...

This commit is contained in:
MartinEesmaa 2022-02-13 13:21:36 +11:00 committed by GitHub
parent 67cd01e83a
commit 58ee795f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,25 @@
echo off echo off
cd /d "%~dp0" pushd "%~dp0"
echo.
echo :: Checking For Administrator Elevation...
echo.
timeout /t 1 /nobreak > NUL
openfiles > NUL 2>&1
if %errorlevel%==0 (
echo Elevation found! Proceeding...
) else (
echo :: You are NOT running as Administrator
echo.
echo Right-click and select ^'Run as Administrator^' and try again.
echo Press any key to exit...
pause > NUL
exit
)
goto welcomenow
:welcomenow
cls cls
title Martin Eesmaa / VVCEasy title Martin Eesmaa / VVCEasy
echo MARTIN EESMAA / VVCEasy echo MARTIN EESMAA / VVCEasy