| View previous topic :: View next topic |
| Author |
Message |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Fri Apr 08, 2005 12:47 pm Post subject: Search for a compression tool - Help needed |
|
|
Hi,
I want to compress files in a directory that may not be a NTFS directory. Therfore I can't use "compress.exe"
I'm looking for a tool that can compress each file into it's own compressed file but without specifying the file. Equivalent to "gzip *" under UNIX/LINUX.
Any Idea?
I had a look at Winzip, WinRar and pkzip, but all of them put several files in one archive. So they are actually a combination of "tar" and "gzip". _________________ Ciao
toralf  |
|
| Back to top |
|
 |
peejay
Joined: 04 Mar 2005 Posts: 40 Location: Netherlands
|
Posted: Fri Apr 08, 2005 3:45 pm Post subject: |
|
|
One solution that pops to mind is creating an AHK script or a bat file that lists the individual files in a directory, and zips them to individual zip files.
WinZip 9 provides a Command Line Support Add-On.
You might also take a look at IZArc, a freeware zip program that provides a command line interface (according to the Help anyway, I've never tried this feature). _________________ The Gods smile upon you. Beware - it is probably because they know what is going to happen to you next, and find it amusing. To them, anyway. --- Discworld Horrorscope: http://www.weirdnes.force9.co.uk/stars3.html |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Fri Apr 08, 2005 3:50 pm Post subject: |
|
|
Thank you for the help,
I also searched further and I found out that cygwin is coming with gzip. So I will try this first. But thanks again. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
olaf Guest
|
Posted: Mon Apr 11, 2005 4:56 am Post subject: |
|
|
| toralf wrote: | Thank you for the help,
I also searched further and I found out that cygwin is coming with gzip. So I will try this first. But thanks again. |
gnuwin32
No need for cygwin or cygwin dlls. gzip, or the even better option, bzip2, all which seem to work well with ahk.
http://gnuwin32.sourceforge.net |
|
| Back to top |
|
 |
olaf Guest
|
Posted: Mon Apr 11, 2005 5:05 am Post subject: |
|
|
forgot the example.
compress or uncompress all files in a directory.
bzip2 *
bunzip2 * |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Apr 11, 2005 5:46 am Post subject: |
|
|
Thanky you.
I saw that they also have gzip and zip. Is there a reason you prefer bzip2? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
olaf Guest
|
Posted: Mon Apr 11, 2005 7:25 am Post subject: |
|
|
| toralf wrote: | Thanky you.
I saw that they also have gzip and zip. Is there a reason you prefer bzip2? |
Better compression. On really small files somewhere around 10 - 20k and under, gzip actually creates a smaller file. Other than that bzip2 is much better imho. The bigger the file or set of files, the bigger the difference between gzip and bzip2. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Mon Apr 11, 2005 10:53 am Post subject: |
|
|
 ---> [7zip] <---   |
|
| Back to top |
|
 |
Me Guest
|
Posted: Mon Apr 11, 2005 7:31 pm Post subject: |
|
|
Absolutely agree. Open Source and a far better compression level than the others... And there is a command line possibility |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Tue Apr 12, 2005 7:51 am Post subject: |
|
|
Thanks a lot for all your comments/suggestions.
Since I have to take care of compatibility, I think I will use gzip.
We work on UNIX, LINUX and Windows, so gzip apperas to me as the best common tool. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
olaf Guest
|
Posted: Wed Apr 13, 2005 7:04 am Post subject: |
|
|
| toralf wrote: | Thanks a lot for all your comments/suggestions.
Since I have to take care of compatibility, I think I will use gzip.
We work on UNIX, LINUX and Windows, so gzip apperas to me as the best common tool. |
I've used Slackware, Red Hat, and Mandrake, and all have had bzip2 for as long as I've used Linux. I'd be surprised if any linux distro didn't have it. And of course it's open source. But a lot of developers still use gzip exclusively, even Volkerding. |
|
| Back to top |
|
 |
|