@echo off setlocal set BASE=%~dp0.. if not defined PRINTSERVICE_CONFIG_DIR set PRINTSERVICE_CONFIG_DIR=C:\printservice if not defined PRINTSERVICE_PORT set PRINTSERVICE_PORT=8080 java -Dprintservice.config.dir=%PRINTSERVICE_CONFIG_DIR% -jar "%BASE%\target\printservice-standalone.jar" --host=0.0.0.0 --port=%PRINTSERVICE_PORT%