RyanVM Posted May 10, 2004 Share Posted May 10, 2004 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 More sharing options...
RyanVM Posted May 11, 2004 Author Share Posted May 11, 2004 Bueller? Link to comment Share on other sites More sharing options...
jrzycrim Posted May 11, 2004 Share Posted May 11, 2004 Not sure if this will be useful but you might try checking the documentation that comes with the Cabinet Software Development Kit. http://msdn.microsoft.com/library/default..../html/cabdl.aspMakecab is a part of that kit so the docs should have something to say about it. Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted May 12, 2004 Share Posted May 12, 2004 So how could I do this? I can't really find it... :s :$ Link to comment Share on other sites More sharing options...
RyanVM Posted May 12, 2004 Author Share Posted May 12, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now