@echo off rem --- Parameterized CAD Printer Runner --- rem --- USAGE --- rem run_parameterized_print.bat rem --- EXAMPLE --- rem run_parameterized_print.bat "C:\Path\To\File.dwg" "Layout1" 0 0 841 594 "C:\Path\To\Output.pdf" if "%~7"=="" ( echo Error: Missing arguments. echo Usage: %0 ^ ^ ^ ^ ^ ^ ^ exit /b 1 ) set ARGS="%~1" "%~2" "%3" "%4" "%5" "%6" "%~7" echo Running print command with arguments: echo %ARGS% rem Navigate to the directory of this script to ensure Maven runs in the correct project cd /d "%~dp0" mvn exec:java -Dexec.cleanupDaemonThreads=false "-Dexec.args=%ARGS%"