I'm working on archiving and compressing a lot of design elements and they are mixed in .zip and .rar files.
After tinkering and testing these settings seem to produce the best results for me:
I'm following this nice piece of code posted in this question and I'm trying to modify it to have the settings I want.
However, the .bat will not run.
This is the code I have:
for %%F in (*.rar) do ( "C:\Program Files\7-Zip\7z.exe" x -y -o"%%F_tmp" "%%F" * & pushd %%F_tmp & "C:\Program Files\7-Zip\7z.exe" a -y -r -t7z -m0=lzma2 -mx=9 -mfb=128 -md=512m -mmt:on ..\"%%~nF".7z * & popd & rmdir /s /q "%%F_tmp" )
Additionally is there a way to have this run on BOTH .zip and .rar out of the same .bat? Right now I have 2 versions.
for %%F in (*.rar *.zip) do ...
System error: The parameter is incorrect
on the second 7zip command.