@echo off REM ================================================ REM SVG Optimizer Batch Script (Interactive Menu) REM Allows users to select SVG optimization options REM ================================================ REM Load environment variables call setenv.bat setlocal REM Check if Python is available in PATH where python >nul 2>&1 if %ERRORLEVEL% neq 0 ( echo Error: Python is not found in your PATH pause exit /b 1 ) REM Display menu options echo SVG Optimization Options: echo 1. Bogen (--bogen) echo 2. Tefbogen (--tefbogen) echo 3. Weichen (--weichen) echo 4. Tefweichen (--tefweichen) echo. REM Prompt user for selection choice /c 1234 /m "Enter your choice (1-4): " REM Set corresponding argument based on user choice set "arg=" if %ERRORLEVEL% equ 1 set "arg=--bogen" if %ERRORLEVEL% equ 2 set "arg=--tefbogen" if %ERRORLEVEL% equ 3 set "arg=--weichen" if %ERRORLEVEL% equ 4 set "arg=--tefweichen" REM Execute Python script with selected argument python %RD_CONF_LIB%\3_svg_optimizer_Step1.py %* python %RD_CONF_LIB%\3_svg_scaler_Step2.py %* python %RD_CONF_LIB%\3_svg_scaler_Step3.py %* REM Check execution status if %ERRORLEVEL% equ 0 ( echo SVG optimization completed successfully! ) else ( echo SVG optimization failed with error code: %ERRORLEVEL% ) REM Keep window open to view results pause