mirror of
https://github.com/MartinEesmaa/VVCEasy.git
synced 2025-01-23 21:40:55 +01:00
Added of checking adminstrator rights...
This commit is contained in:
parent
67cd01e83a
commit
58ee795f66
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user