Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Makecab.exe vs Cabarc.exe - packing files

- - - - -

  • Please log in to reply
10 replies to this topic

#1
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,525 posts
  • Joined 27-November 10
  • OS:none specified
  • Country: Country Flag
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.

  • 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

  • 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

  • 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, 05 April 2013 - 11:42 PM.

post-47483-1123010975.png



How to remove advertisement from MSFN

#2
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,799 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
So, Cabarc beats Expand, and Cabarc beats MakeCab, so Cabarc seems like the overall winner!

Cheers and Regards

Posted Image


#3
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,525 posts
  • Joined 27-November 10
  • OS:none specified
  • Country: Country Flag
I've added one more test done using a newer version of makecab. It seems to be exactly as fast as cabarc.

post-47483-1123010975.png


#4
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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..Posted Image
@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, 06 April 2013 - 04:38 PM.


#5
staino

staino
  • Member
  • 2 posts
  • Joined 05-May 13
  • OS:Windows 8 x64
  • Country: Country Flag

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


Silly question....

Where do I find this version of cabarc?

Thanks

#6
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,557 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator



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


Silly question....

Where do I find this version of cabarc?

Thanks

Please see the clue!

#7
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,310 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag




[*] 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, 05 May 2013 - 09:22 AM.


#8
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,654 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
The 6.2.9200.16438 version seems connected to the Windows8 SDK:
http://msdn.microsof...p/hh852363.aspx
according to:
http://en.wikipedia....oft_Windows_SDK
but cannot say if cabarc.exe is in that. :unsure:

jaclaz

#9
staino

staino
  • Member
  • 2 posts
  • Joined 05-May 13
  • OS:Windows 8 x64
  • Country: Country Flag

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

#10
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,654 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

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

#11
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,557 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I also stated that it was a clue, not the answer! :whistle:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users