@echo off
setlocal
title MCom - ProtoCom
cd /d "%~dp0"
set "TARGET=%~dp0..\..\repos\mcom-protocom\target\release\protocom.exe"

if not exist "%TARGET%" (
  echo [MCom] ProtoCom no esta instalado en este equipo.
  echo Abriendo la pagina de instalacion...
  start "" "http://127.0.0.1:8092/app/app-prod-protocom"
  endlocal
  exit /b 0
)

start "" "%TARGET%"
endlocal
