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