2021-10-26 13:14:34 +00:00
|
|
|
@echo off
|
|
|
|
|
2020-07-10 16:00:21 +00:00
|
|
|
PUSHD %~dp0..
|
|
|
|
call runasadmin.bat "%~dpnx0"
|
|
|
|
|
2021-11-16 13:14:21 +00:00
|
|
|
POPD
|
|
|
|
|
2020-07-10 16:00:21 +00:00
|
|
|
if %errorlevel% == 0 (
|
2021-11-16 13:14:21 +00:00
|
|
|
pwsh %~dp0/command.ps1 "restart"
|
2020-07-10 16:00:21 +00:00
|
|
|
)
|
2021-10-26 13:14:34 +00:00
|
|
|
|
|
|
|
echo.
|
2021-10-26 13:39:00 +00:00
|
|
|
|
|
|
|
if "%1"=="nopause" goto start
|
|
|
|
pause
|
|
|
|
:start
|