Posbridge/posbridge.bat

16 lines
434 B
Batchfile

@echo off
setlocal enableextensions
cd /d "C:\HamekaraPosBridge"
REM === optional environment overrides ===
REM set "PORT=9090"
REM set "POS_IP=192.168.100.90"
REM set "POS_PORT=2020"
REM set "PEC_CANCEL_OP=CANCEL"
REM === delay a few seconds to let network and PEC service start ===
timeout /t 8 /nobreak >nul
REM === start Node silently with logging ===
"C:\Program Files\nodejs\node.exe" server.js >> "%~dp0\posbridge.log" 2>&1