I need a code in the space below to tell if the batch file is elevated or not. I am making a program so that if it is elevated it does something one way and if it is not it does it the other way. Does anyone know a code I could use.
@echo off
:no
echo no
pause
goto exit
:yes
echo yes
pause
goto exit
:exit
I would recommend something based off of this script: