Maelstorm Posted February 13, 2005 Share Posted February 13, 2005 I have written a batch script that will take a list of files and compress them into cab files based on the first letter. All the files that start with 'A' will be compressed into a cab file that is in the format of fnameA.cab. Same with B, C, and so on. Files that have their names lead off with numbers 0-9 is also handled. When it's done, there will be a new sub-directory that contains the cab files. The script will also generate another script that will unpack the cab files, which you will need to modify to suit your environment. The script will take 1 command line parameter, and that is the base filename to use for the cab file. If you do not specify one, then the default a, b, c, etc... is used. Place all files in the .zip into the same directory as the files that you want to compress and run the script. It does the rest.You will need to obtain GNU grep for this to work. Download sites can be found here.Enjoy.buildcabs.zip Link to comment Share on other sites More sharing options...
GreenMachine Posted February 14, 2005 Share Posted February 14, 2005 Thanks for sharing, Maelstorm, it is always a noble jest! Link to comment Share on other sites More sharing options...
Maelstorm Posted February 14, 2005 Author Share Posted February 14, 2005 Thanks for the compliment.In more than one instance, this script has helped me to compress lots of files (>1500) in a very short time. Much faster than building the makecab directive files manually or using IExpress. Hopefully, someone will find it useful.Later. 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