opcuaCOM_PY/EXEC_PRESS_START.bat
2025-04-04 11:15:37 +02:00

16 lines
344 B
Batchfile

@echo off
setlocal
:: ---------- USER DEFINE --------------
set "venvName=opcua_com"
set "scriptPath=RUN_BTN.py"
set "arg=-n BTN_START"
:: -------------------------------------
:: Activate the Conda environment and execute the Python script
call conda activate %venvName%
python "%scriptPath%" %arg%
:: Pause at the end of the script
#pause