1
0
mirror of https://github.com/arkuznetsov/1CFilesConverter.git synced 2024-11-24 08:33:30 +02:00

fix: Изменен способ очистки каталогов назначения.

This commit is contained in:
Artem Kuznetsov 2023-10-05 16:19:02 +03:00
parent bea0c5b490
commit 128173bda5
7 changed files with 28 additions and 7 deletions

View File

@ -88,7 +88,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_CONF_EDT_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_CONF_EDT_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Checking configuration source type...

View File

@ -87,7 +87,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_CONF_XML_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_CONF_XML_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Checking configuration source type...

View File

@ -101,7 +101,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_EDT_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_EDT_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Set infobase for export data processor/report...

View File

@ -101,7 +101,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_BIN_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_BIN_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Set infobase for export data processor/report...

View File

@ -100,7 +100,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_XML_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_DP_XML_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Set infobase for export data processor/report...

View File

@ -113,7 +113,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_EXT_EDT_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_EXT_EDT_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Set infobase for export configuration extension...

View File

@ -112,7 +112,10 @@ IF %ERROR_CODE% neq 0 (
echo [INFO] Clear temporary files...
IF exist "%LOCAL_TEMP%" rd /S /Q "%LOCAL_TEMP%"
md "%LOCAL_TEMP%"
IF exist "%V8_DST_PATH%" IF "%V8_EXT_XML_CLEAN_DST%" equ "1" rd /S /Q "%V8_DST_PATH%"
IF exist "%V8_DST_PATH%" IF "%V8_EXT_XML_CLEAN_DST%" equ "1" (
del /f /s /q "%V8_DST_PATH%\*.*" > nul
rd /S /Q "%V8_DST_PATH%"
)
IF not exist "%V8_DST_PATH%" md "%V8_DST_PATH%"
echo [INFO] Set infobase for export configuration extension...