windows - Runas Error 2, trying to run the current Batch instance as administrator -
i'm trying run current batch file run administrator, doesn't quite work. :(
it worked once, don't know did there xd
please take @ code.
:r cls runas /user:administrator rem runas /user:administrator %~n0%~x0 if %errorlevel% neq 0 pause && goto r if %errorlevel% equ 0 cls && goto start :start cls
Comments
Post a Comment