Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

tomasz86

Makecab.exe vs Cabarc.exe - packing files

Recommended Posts

tomasz86    68

The test is using the same file base as that one. This time I just compressed the files from the "2" folder in order to see if there's any difference between makecab.exe and cabarc.exe when compressing files with LZX:21 compression.

  1. makecab.exe 5.0.2147.1 (from Windows 2000)
    FOR /F "delims=" %%A IN ('DIR/B/S 2') DO makecab /D CompressionType=LZX /D CompressionMemory=21 "%%A" /L 3 >NUL


    Time: 7:51

  2. makecab.exe 6.1.7600.16385 (from Windows 7)
    FOR /F "delims=" %%A IN ('DIR/B/S 2') DO makecab /D CompressionType=LZX /D CompressionMemory=21 "%%A" /L 3 >NUL


    Time: 7:03

  3. cabarc.exe 6.2.9200.16438 (from Windows 8)
    SETLOCAL ENABLEDELAYEDEXPANSION
    FOR /F "delims=" %%A IN ('DIR/B/S 2') DO (
    SET File=%%~nA.
    SET "Ext=%%~xA" && SET File=%%~nA!Ext:~0,-1!
    cabarc -m lzx:21 N 3\!File!_ "%%A" >NUL
    )


    Time: 7:05

Edited by tomasz86

Share this post


Link to post
Share on other sites
bphlpt    104

So, Cabarc beats Expand, and Cabarc beats MakeCab, so Cabarc seems like the overall winner!

Cheers and Regards

Share this post


Link to post
Share on other sites
tomasz86    68

I've added one more test done using a newer version of makecab. It seems to be exactly as fast as cabarc.

Share this post


Link to post
Share on other sites
DosProbie    97

Tomasz..Can post d/l link or upload the cabarc.exe 6.2.9200.16438 for Win 8 the version I am using is 5.1.2600.0 is

not working with your code. Keep getting a "failed code 6" ..Thanks Dos

Got it to work with Win8 now with this revised code..biggrin.gif

@echo off&color a&setlocal enabledelayedexpansion

:: CabArc
for /f "delims=" %%x in ('dir/b/s Files2Cab') do (
set file=%%~nx.
set "Ext=%%~xx" && set file=%%~nx!Ext:~0,-1!
cabarc -m lzx:21 N Cab.CabArc "%%x">nul
)

Edited by DosProbie

Share this post


Link to post
Share on other sites
Yzöwl    30

[*] cabarc.exe 6.2.9200.16438 (from Windows 8)

Silly question....

Where do I find this version of cabarc?

Thanks

Please see the clue!

Share this post


Link to post
Share on other sites
ricktendo    3

[*] cabarc.exe 6.2.9200.16438 (from Windows 8)

Silly question....

Where do I find this version of cabarc?

Thanks

Please see the clue!

The "clue" is misleading, its not present in Windows 8. You can fin it in the latest IEAK 10

BTW the latest version of cabarc.exe is 6.2.9200.16521

Edited by ricktendo

Share this post


Link to post
Share on other sites
staino    0

The "clue" is misleading, its not present in Windows 8. You can fin it in the latest IEAK 10

BTW the latest version of cabarc.exe is 6.2.9200.16521

Thanks Tomasz86 for the helpful clarification - Yes the CLUE was a little misleading. Ive been looking for the latest version for some time (inlcuding on Win8....owl).

Regards

Share this post


Link to post
Share on other sites
jaclaz    926

Thanks Tomasz86 for the helpful clarification - Yes the CLUE was a little misleading. Ive been looking for the latest version for some time (inlcuding on Win8....owl).

Regards

Only problem being that this piece of info was kindly provided by ricktendo .... :whistle:

jaclaz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×