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