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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -