Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Windows 2003 zip from command line

Can somebody please, let me know that how we can zip a file in a Command line. Please, let me know.

share|improve this question
1  
superuser.com/questions/35145/… seems to be a dup –  Journeyman Geek Oct 7 '09 at 23:47
    
Until it is confirmed that he is indeed searching for a cmd, and not DOS, I don't see how this is a duplicate. Btw, to original author: look at pkzip /? and pkunzip /? –  ldigas Jan 5 '10 at 0:31
add comment

migrated from stackoverflow.com Oct 7 '09 at 23:33

This question came from our site for professional and enthusiast programmers.

marked as duplicate by hyperslug, Jeff Atwood Oct 11 '09 at 8:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5 Answers

7-zip comes with a command line variant that will (un)compress to/from all the archive formats it supports (7z, zip, gz, rar, and a few others)

share|improve this answer
add comment

Download command line zip utility from Info-Zip.

share|improve this answer
add comment

Unxutils has a standalone command line zip programme as part of it

http://sourceforge.net/projects/unxutils/

alternately 7zip has a cli - and it does quite a few formats.

share|improve this answer
add comment

Install the zip and unzip packages in your Cygwin environment. I wouldn't install it for just those two packages, but if you have one already, use it.

share|improve this answer
add comment

there is a compress command.

share|improve this answer
    
Compress is different from zip, but it's a good point, in that DOS does have a standard way of compressing files. Just not a very good or compatible one :) –  Lee B Oct 8 '09 at 11:50
add comment