Skip to content

Instantly share code, notes, and snippets.

@ganadist
Created May 28, 2020 16:30
Show Gist options
  • Save ganadist/4cd50796b10b067728166438c64b2e16 to your computer and use it in GitHub Desktop.
Save ganadist/4cd50796b10b067728166438c64b2e16 to your computer and use it in GitHub Desktop.
Modified batch file to check Administrative permissions
@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