mirror of
https://github.com/MartinEesmaa/VVCEasy.git
synced 2025-06-05 21:59:20 +02:00
Added of checking adminstrator rights...
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user