mit neuem Schalter --export_dir
This commit is contained in:
+5
-8
@@ -17,7 +17,6 @@ set JSON_POS=%FILENAME%_positionsconv.json
|
||||
set JSON_TODRAW=%FILENAME%_todraw.json
|
||||
REM Namen der Ergebnisdateien
|
||||
set ERROR_DOUBLE=%FILENAME%_errors.json
|
||||
set RESULT_TIA=%FILENAME%-*_TIA.xlsx
|
||||
|
||||
if exist "%~dp0_setenv.bat" (
|
||||
echo Lade lokale Umgebungseinstellungen aus _setenv.bat...
|
||||
@@ -25,9 +24,9 @@ if exist "%~dp0_setenv.bat" (
|
||||
)
|
||||
REM Zielverzeichnis
|
||||
set TARGET_DIR=%PROJECT_IO_RESULTS%\%FILENAME%
|
||||
mkdir "%TARGET_DIR%"
|
||||
if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%"
|
||||
REM lösche alte Fehlermeldungen
|
||||
del "%PROJECT_WORK%\%ERROR_DOUBLE%"
|
||||
if exist "%PROJECT_WORK%\%ERROR_DOUBLE%" del "%PROJECT_WORK%\%ERROR_DOUBLE%"
|
||||
|
||||
|
||||
|
||||
@@ -48,14 +47,12 @@ if not exist "%PROJECT_WORK%\%JSON_POS%" (
|
||||
goto :eof
|
||||
)
|
||||
echo === Creating Excel Files for TIA, WSCAD, .. ===
|
||||
call portalexport.bat --filename %JSON_POS% --outname %FILENAME%
|
||||
if not exist "%PROJECT_WORK%\%RESULT_TIA%" (
|
||||
@echo == failed: creating .xlsx files
|
||||
call portalexport.bat --filename %JSON_POS% --outname %FILENAME% --export_dir "%TARGET_DIR%"
|
||||
if not exist "%TARGET_DIR%\*_TIA.xlsx" (
|
||||
@echo == failed: creating .xlsx files
|
||||
pause
|
||||
goto :eof
|
||||
)
|
||||
echo move %PROJECT_WORK%\%FILENAME%-* %TARGET_DIR%
|
||||
move %PROJECT_WORK%\%FILENAME%-* %TARGET_DIR%
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
|
||||
Reference in New Issue
Block a user