Need a command-line zip utility for Vista

Posted on 2009-04-21
Last Modified: 2013-12-01
I am using mysqldump to dump the contents of a database (on a remote server) into a text file.  The output file can get rather large, often upwards of 100Mb.  I can use a Windows compressed (zip) folder to shrink the output file down to a bit over 1Mb, but Windows doesn't provide a mechanism to do this compression from the command-line.

Does anybody know of a decent command-line (only) zip program that will run at the Vista command prompt which either:
1) doesn't have to be installed on the system to be used (preferable) or
2) doesn't overwrite Windows compressed (zip) folder default functionality?

Additionally, it should not open a GUI during its processing and it should wait for the command (at the command-line) to complete before moving on to the next command in the script.


(WinZip overwrites Windows default functionality. FreeByte Zip opens a GUI when run from the command line, and the command-line script doesn't wait for the GUI to complete before continuing.)
Question by:ACSIPaul
    LVL 4

    Expert Comment

    You can try WinRar for MS-DOS, It uses the windowsfunctionality, but does no overwrite it.
    LVL 4

    Author Comment

    Thanks, JDominguezNY

    That looked really promising.  I just tried it.  It crashes on a 50Mb file with the error Virtual memory exceeded in `new'.  Most of my files will be twice that size.
    LVL 4

    Accepted Solution

    7-Zip is another utility that has the command line interface but I was unable to verify if it overrides the windows functionality.
    LVL 4

    Expert Comment

    Did 7-Zip accomplish what you needed?
    LVL 4

    Author Closing Comment

    Thank JDominguezNY, 7-zip worked great.  Its exactly what I needed.!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    Upgrade to Windows 10? 44 182
    Universal Charging Solution for Notebooks 10 56
    MySQLD Process AutoStarting 24 132
    DVD RW device driver 19 95
    A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now