Command Line Zip for Windows

Technology

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.

4 thoughts on “Command Line Zip for Windows

  1. bjepson says:

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

    The optional zip/unzip packages you can get from Cygwin (invoke them as c:cygwinbinzip 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 says:

    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.

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged
Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK