AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search for a compression tool - Help needed

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Apr 08, 2005 12:47 pm    Post subject: Search for a compression tool - Help needed Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
peejay



Joined: 04 Mar 2005
Posts: 40
Location: Netherlands

PostPosted: Fri Apr 08, 2005 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Apr 08, 2005 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
olaf
Guest





PostPosted: Mon Apr 11, 2005 4:56 am    Post subject: Reply with quote

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





PostPosted: Mon Apr 11, 2005 5:05 am    Post subject: Reply with quote

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

PostPosted: Mon Apr 11, 2005 5:46 am    Post subject: Reply with quote

Thanky you.

I saw that they also have gzip and zip. Is there a reason you prefer bzip2?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
olaf
Guest





PostPosted: Mon Apr 11, 2005 7:25 am    Post subject: Reply with quote

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





PostPosted: Mon Apr 11, 2005 10:53 am    Post subject: Reply with quote

CoolExclamation ---> [7zip] <--- ExclamationCool
Back to top
Me
Guest





PostPosted: Mon Apr 11, 2005 7:31 pm    Post subject: Reply with quote

BoBo wrote:
CoolExclamation ---> [7zip] <--- ExclamationCool

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

PostPosted: Tue Apr 12, 2005 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
olaf
Guest





PostPosted: Wed Apr 13, 2005 7:04 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group