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.

2 Responses to Command Line Zip for Windows

  1. bjepson on said:

    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!

  2. jhunter on said:

    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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s