@echo off cd /d %~dp0 echo Starting OPC UA Robot Control Dashboard... echo. REM Check if conda is available where conda >nul 2>nul if %ERRORLEVEL% NEQ 0 ( echo ERROR: Conda is not installed or not in PATH echo Please install Anaconda or Miniconda first pause exit /b 1 ) echo Setting up conda environment... REM Try to create environment, if it exists, update it conda env create -f environment.yml 2>nul if %ERRORLEVEL% NEQ 0 ( echo Environment already exists, updating... conda env update -f environment.yml ) echo. echo Starting Streamlit app on port 8505 using conda run... conda run -n opcua_com --no-capture-output streamlit run app.py --server.port 8505 echo. echo Streamlit exited with code %ERRORLEVEL%. pause