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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -