@echo off if [%1]==[] goto usage for /F %%i in ("%1") do set FILENAME=%%~ni echo --hole Positionen call getpositions.bat --filename %1 -s -r -w %1 echo --erzeuge Graph mit Routing call routing.bat --filename %FILENAME%.json -w todraw.json echo --zeichne Kabel in dxf Datei call draw_dxf.bat --filename todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx goto :eof :usage @echo Usage: %0 ^ exit /B 1 goto :eof