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