@ all
Sry, edit the line with
move command in re-compress.bat like this:
Code:
from move %%~nF\*.* temp\Datav /y to move /y %%~nF\*.* temp\Datav >nul
Code:
@echo off
cls
for %%F in (data001.bin data002.bin data003.bin) do (
echo.Extracting contents of archive %%F,please wait...
7z x -o.\temp %%F
if ERRORLEVEL 1 goto error
del %%F
move /y %%~nF\*.* temp\Datav >nul
echo.Re-compressing contents of archive %%F,please wait...
7z a -m0=LZMA:d=25 -r %%F .\temp\*.*
if ERRORLEVEL 1 goto error
rd %%~nF temp /s /q
)
echo. All done.
pause
del 7z.exe re-compress.bat
goto EOF
:error
echo.
echo.WARNING: 7zip returns an error, please retry...
:EOF