View Single Post
  #113  
Old 18-12-2023, 04:07
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,337 Times in 2,839 Posts
KaktoR is on a distinguished road
Not a "tool for repacking", but this comes in handy if you want to delete extracted files below certain size, for example if you use WemTool, which will give negative ratios if you have a ton of very small files (1kb up to 400kb from my experience) without doing it manualy, which can be annoying, especially if you extract a file and end up with 50k+ files. This is only usefull if you want to use xtool erase/decode function.

Code:
REM Set size in bytes
set size=416000
set foldername=E:\_QuickBMS\Voice.pak_extract

cd /D "%foldername%"

for /f "usebackq delims=;" %%A in (`dir /s /b /A:-D *.*`) do If %%~zA LSS %size% del "%%A"
Test (deleted all files below 50kb (50000)
Code:
sounds_sfx_orig.7z 1,25 GB (1.347.455.155 Bytes)
sounds_sfx_processed_all_wems.7z 1,22 GB (1.314.981.234 Bytes)
sounds_sfx_processed_bigger_wems.7z 1,19 GB (1.284.920.096 Bytes)
__________________
Haters gonna hate

Last edited by KaktoR; 18-12-2023 at 05:24.
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Masquerade (18-12-2023), Wanterlude (09-08-2024)