diff --git a/bin/install.bat b/bin/create_dropItem.bat similarity index 59% rename from bin/install.bat rename to bin/create_dropItem.bat index fbbb191..e61d9ef 100644 --- a/bin/install.bat +++ b/bin/create_dropItem.bat @@ -14,7 +14,15 @@ setlocal enabledelayedexpansion @echo off ( if [%1]==[] goto usage -for /F %%i in ("%1") do set FILENAME=%%~ni +for %%i in ("%~1") do ( + set "FILENAME=%%~ni" + set "EXT=%%~xi" + set "DIR=%%~dpi" +) + +REM echo Dateiname ohne Erweiterung: %FILENAME% +REM echo Erweiterung: %EXT% +REM echo Verzeichnis: %DIR% call %%PROJECT_BIN%%\setenv.bat @@ -25,9 +33,11 @@ call getpositions.bat --filename %1 -s -r -w %FILENAME%_positions.json echo --erzeuge Graph mit Routing call routing.bat --filename %FILENAME%_positions.json -w %FILENAME%_todraw.json echo --zeichne Kabel in dxf Datei -call draw_dxf.bat --filename %FILENAME%_todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx --copy_layer %FILENAME%_reduziert.dxf --origin %1 +call draw_dxf.bat --filename %FILENAME%_todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx -move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR% + +mkdir %INSTALL_DIR%\%FILENAME% +move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%\%FILENAME% pause endlocal @@ -40,5 +50,6 @@ exit /B 1 goto :eof ) > _getexdraw.bat +MOVE _getexdraw.bat getexdraw.bat REM Icon anlegen -REM powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT%');$s.TargetPath='%TARGET%';$s.IconLocation='%ICON%';$s.Save()" \ No newline at end of file +powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT%');$s.TargetPath='%TARGET%';$s.IconLocation='%ICON%';$s.Save()"