MaxCAB - A Script to optimize CABed files

Forum for anything else which doesn't fit in the above forums. Site feedback, random talk, whatever, are welcome.
Post Reply
Vid0
Posts: 41
Joined: Thu Apr 14, 2005 6:24 am
Location: Lithuania

MaxCAB - A Script to optimize CABed files

Post by Vid0 » Sat Aug 27, 2005 8:10 pm

A script to repack all CABed files in a folder using best packing options.

For compression I've used CabArc.exe (MS Cabinet Tool), so it must be on your system.
Please, check if you have CabArc.exe on your system, or script will not work !!
Script is very slow and maybe not so useful, but anyway, here it is:

-------------------------------------------------------------
begin 644 MaxCAB.rar
M4F%R(1H'`#O0<P@`#0`````````47'2`D"\`2`H``%<E```"1E,/&=P0'#,=
M-0H`("```$UA>$-!0BYV8G,`\#Z<!Z<8)PD(@IVH#:5&`F]X]3RPR:ON+-S3
M$/,%;?UV/12]V%G[N,Y>6"434A3O[),GL`K[J(@SYU4VNEVM#`4#KW18%2XL
MGSTXG%E/_5KPY[Q6[)(/6[)8`2&-HKK<WM=7LS"6K#PBKO8@T]J$X-39=7(S
M=YFV9]IF1M?VQ$KW`-P*"D\S^XV+LI,[._Z!PMME&B"EUL2E;+D9)9?!*XID
M&H\NNJQQD@,=+_%I$^[5E32N@Z=)-Y,?[_32=C-F"=?\HV4EO?0ODJTBWWWL
MU0,E<@/<F8J?:>+*KW,T:(K:HSZU8Y"0`A?DCII:$>OA8&CQ)NJ9PX0IZSZJ
MWG6'7M)?L$-MS"/U[7V/-7OIC6`5CRFX^,MD&@6ZW%E:*I7+@^&R3FUJ=1"P
M<9&((6Z8?\_VE5#6%WQ@+U76QQ0%PKV!#LTLJ&9]XXC=Y!\*T^1O'<TZEL`2
M_0%.4;R2;ZJM!97JLB7UJ6%HP7#;/.IT,BZT>W3VGIOJN6QM4^&,ROL(?XFG
M/%J;GAOVK=MVC*>VF_4B1C93UR>&]FVS3#P[<)*VU,BQUMEVQ#ZG6H$*4(OZ
MEH"LY8K\BLFSBVN0>];2#)N5]X)8F46(-(2YZ4Z1Y"S2UV7R.[OH^,12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HG7.`B+.VH(CD%YU;4>^39BOOFI@5PC3),X.2"0<XZL#&2SS$R7X()5'*_Q
MFB67<I38[LU7P8K#H\&H:0!`N/82$:9,,(#>".-<^IF\N46K'2O2/,+,;#H4
M1,(X?%(%"\FQ>`5#'3?[A[.Y12,*R_2US%:K<,^A%>@K:83L6HUU:J>6-O>Z
MK_.3A&R+;W/P"-'B%>^L"<B0LMMUGC^+G[%Q7@%SGXKH<O_W*P=MAM=V+(`O
M5IQ]#]M#4IU=2'J#7X^O-8'>3ZY,C$)YFM!A<0BBX[_7W2T00\MXNWV41$^F
MOS%!`DC7:P@B;>0LSYDT[<A$O>2QONJ[#3_4+M*>DH"3#)Q/_B4BF"'`K2Q^
M]&'G^<)'5C`^U:*80EKH>H9:ROEG@MN7$LP]O:"?.%W0/C_;[E2?`3['9?;@
M`JQ5ZC87]OLZQY3'QXH?%;^W2G)`B_DZL\>I1DB[3R'EB>#/KS)Z)U-LH\BB
MPD10]$E-:*?1K6RY.C;@/[0V3'G1FI^SR&:@UU5-+F@6VN.W,61.6>5]!`%4
M<J:%&(Y*+,BW'IUH-![\F<#D,X*3W19J(9R%R6&#YG-OC*D."LBZ_:*GY$`G
M/+5XTL7.S-!2IZ:;,F?>)4]<^2VV8/#T,Z,@VI]ZKM]M"+4K?=O:O0]0PLF6
M_<;>HD4/Y`.JFRT2D@T^MVT'A3GRP)HT=(H,T+`>5O>K178*J$BKTYKW=SGT
M!PT'F`2GBTZG$B_]#!H=R'@>S6GL$<Z)LO.BUP>$F/;$Q5.1CDC)[/DS^?E!
MFN0MHDR:.$@%WZ4:Z$XLK@/_8SLM3S<WJI[X2.\CV\O%=K4+7D^TKA[`$:';
M]"!YA_3<6*B=T4[3/5DF;"0D9K1L\V]IV+#&[F0>P&8-2````+^(9_:I_]3$
&/7L`0`<`
`
end
size 2706
-------------------------------------------------------------

(Save this text to MaxCAB.uue file and extract with WinRAR).

Post Reply