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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -