18 lines
356 B
Batchfile
18 lines
356 B
Batchfile
set DIR=%~dp0
|
|
cd "%DIR%"
|
|
|
|
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
|
|
|
|
%@Try%
|
|
@REM Uninstall IO-Server
|
|
node .\dist\lib\cli\ioServerService.js -m start
|
|
%@EndTry%
|
|
:@Catch
|
|
echo restarted IO-Server
|
|
:@EndCatch
|
|
|
|
@REM Uninstall all Services
|
|
for /f "delims=" %%a in ('dir /s /o /b *01-start.bat') do (
|
|
echo %%a
|
|
call %%a
|
|
) |