Created
May 28, 2020 16:30
-
-
Save ganadist/4cd50796b10b067728166438c64b2e16 to your computer and use it in GitHub Desktop.
Modified batch file to check Administrative permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:check_Permissions | |
echo Administrative permissions required. Detecting permissions... | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( | |
echo Success: Administrative permissions confirmed. | |
) else ( | |
echo Failure: Administrative permissions needs. | |
echo Please see %APPDATA%\DmitriRender\Help\players.html | |
pause >nul | |
exit 1 | |
) | |
@echo on | |
regsvr32.exe "%APPDATA%\DmitriRender\x86\dmitriRender.dll" | |
regsvr32.exe "%APPDATA%\DmitriRender\x64\dmitriRender.dll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment