@echo off CALL setenv.bat echo ======================================== echo Creating all test DXF files from testdata echo Output directory: %PROJECT_WORK% echo ======================================== echo. REM Track if any errors occurred set ERRORS_OCCURRED=0 REM Iterate through all CSV files in testdata directory for %%f in ("%PROJECT_TEST%\*.csv") do ( echo Processing: %%~nxf CALL plant2dxf.bat -f "%%f" -o "%PROJECT_WORK%\%%~nf.dxf" if errorlevel 1 ( echo ERROR: Failed to process %%~nxf echo. set ERRORS_OCCURRED=1 ) else ( echo SUCCESS: Created %%~nf.dxf in work folder echo. ) ) echo ======================================== if %ERRORS_OCCURRED%==1 ( echo Processing completed with ERRORS! echo ======================================== pause exit /b 1 ) else ( echo All test DXF files processed successfully! echo ======================================== pause exit /b 0 )