View Single Post
  #7  
Old 08-12-2009, 06:18
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
@ 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

Last edited by peterf1999; 08-12-2009 at 06:31.
Reply With Quote