Jump to content

makecab everything in a folder


Recommended Posts

Posted
You could use 'compress.exe' from the resource kit.

compress -r * outputdir

As far as I can see though that creates a dot Z file, it doesn't makecab FILE.SYS >> FILE.SY_


Posted (edited)

There is a great tool from one of the board members - jdoe. It's here.

I use its previous version with batch files ;) It adds two lines to Send To context menu: "CAB expand" and "CAB make". And it makes File.ex_ from separate files and Folder.cab files from folders :thumbup

Edited by Oleg_II
Posted

Compress.exe from the Windows resource kit, is the reverse of Expand.exe.

COMPRESS [-r] [-d] [-z] Source Destination
COMPRESS -r [-d] [-z] Source [Destination]

-r Rename compressed files.
-d Update compressed files only if out of date.
-zx LZX compression.
-z MS-ZIP compression.
-zq[n] Quantum compression and optional level
(in range 1-7, default is 4).
Source Source file specification. Wildcards may be used.
Destination Destination file | path specification.
Destination may be a directory.
If Source is multiple files and -r is not specified,
Destination must be a directory.

The level of compression given by makecab is identical with compress -r -zx filename outdir

By itself, compress -r file outdir, gives a compression identical with Windows 3.10 (any kind).

For windows XP and above ye find compress.exe in the reskit. For 2k, it is rath found by google.

  • 2 years later...
Posted

rem @echo off

for %%a in (*.*) do MAKECAB %%a

pause

_______________________________________________

Put this script in your folder with files you want to cabcompress

Make sure that at the end you delete cabcompressed cmd file.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...