@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