Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Looking for a good "zip" utility....
Closed Thread
Old 09-25-2006, 11:50 AM   #1 (permalink)
 
Newb Techie

Join Date: Aug 2005

Posts: 4

mdexter57

Send a message via AIM to mdexter57
Question Looking for a good "zip" utility....

Hi all,

I am looking for a good zip utility that can handle my requirements as follows:

1. Must be able to accept an input file. This means I want to tell the zip utility (VIA Command Line) to read an input file and zip the file specified on each line within the input file.

2. Must have a Command Shell option.

I am writing a script that looks for a bunch of files that match a given criteria. The script then enters the full path of each file found into an "input" file. I then want the zip utility to read the input file and add into a zip package each file that was found.

My dilemma is that I had this working using 7z, but wouldn't you know 7z has a bug that when you try to create a zip package it does not write the "path" column into the zip package. So you end up with a package that you are unable to restore from. This is not good especially if you have file names the same that came from different directories.

I then tries to use WinZip, but the CLI Add-on requires a full install of Winzip with License purchased.

This brings me to my 3rd requirement.

3. Must be installed in a self contained directory.

I plan on putting the installation files onto a filer share and running my script to archive private files for my users.

Any help is greatly appreciated. I have spent 3 days looking for a good compression tool that accepts the input file switch and does not require licensing.
mdexter57 is offline  
Old 09-25-2006, 01:21 PM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

If you're writing scripts, just use the 'zipfile' module in python. Check the docs for the api:
http://docs.python.org/lib/module-zipfile.html
jaeusm is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On