Jump to content

MAKECAB help


RyanVM

Recommended Posts

I've noticed that the makecab utility doesn't use LZH compression by default (which usually get's an extra 15-20% off the size of the file). I saw in jdeboeck's batch files how he uses a DDF file to enable LZH when recompressing drivers.cab. I want to adapt that for a different purpose. I want to script cab-ifying (I love making up words :)) all the files in a directory, but as individual .DL_ or .SY_ files rather than as one giant CAB file. This would be pretty easy if there were a command line option for enabling LZH compression, but I haven't found it yet.

Anybody have an idea how to accomplish this?

Link to comment
Share on other sites


Thanks jrzycrim, I found what I was looking for in one of the docs. Below is code for a batch script which will automatically compress all .SYS files in a directory into .SY_ files with LZX compression. One caveat, it only works if the path has no spaces in it. If you can figure out a way around that, let me know.

@echo off
rem Compressing Driversfor /f %%i in ('dir *.sys /b /s') do makecab /D CompressionType=LZX "%%i"
Link to comment
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.
×
×
  • Create New...