opcuaCOM_PY/EXEC_PRESS_STOP.bat
2025-03-20 10:57:49 +01:00

16 lines
342 B
Batchfile

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