@echo off if not exist %1.pk3 goto error1 if exist %1_kzip.zip del %1_kzip.zip if exist %1_kzip1.zip del %1_kzip1.zip if exist %1_kzip2.zip del %1_kzip2.zip md tmp cd tmp unzip ..\%1.pk3 kzip ..\%1_kzip1.zip * /r /b1024 deflopt ..\%1_kzip1.zip kzip ..\%1_kzip2.zip * /r /b256 deflopt ..\%1_kzip2.zip zipmix ..\%1_kzip1.zip ..\%1_kzip2.zip ..\%1_kzip.zip cd .. rd /s /q tmp ren %1.pk3 *.zip deflopt %1.zip ren %1.zip *.pk3 zipmix %1.pk3 %1_kzip.zip goto :eof :error1 echo %1.pk3 does not exist! Exiting.