Command Line Zip for Windows

Go-to Hacks author Paul Bausch shares another productivity problem he's solved for himself with a bit of hacking:

Windows doesn't have a command line utility for compressing files (that I know of), and I had to come up with a way to automate some file transfers today. So I whipped up a tiny Perl script that will zip up a file.
He adds that his hack works well with Windows batch files and will save him a bunch of bandwidth. If Paul's homegrown fix looks like something you could use too, check out his site for the code.

Posted by | Jan 5, 2007 04:38 AM
Perl, Windows | Permalink | Comments (2) Bookmark and Share

Recent Entries

Comments

Newest comments listed first.

Posted by: bjepson on January 5, 2007 at 9:03 AM

There are two command-line zip/unzips that I use:

The optional zip/unzip packages you can get from Cygwin (invoke them as c:\cygwin\bin\zip or unzip if you don't add the Cygwin bin directory to your path)
The free Info-ZIP

But I like the Perl solution; once you've gone down that road, you can even replace your whole batch file with a Perl script!


Posted by: jhunter on March 19, 2008 at 8:48 AM

I use 7-zip (7-zip.org) it has a fully featured command line that we've been using for at least a year on Windows Server 2003 boxes.


Leave a comment



Bloggers

Welcome to the Hacks Blog!

Brian Jepson.Brian Jepson


Jason Striegel.Jason Striegel


Philip Torrone.Phillip Torrone



See all of the books in the Hacks Series!
Advertise here.

Recent Posts

www.flickr.com
photos in Hacks More photos in Hacks

Most read entries (last 30 days)