1

Possible Duplicate:
Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

Is there a way to zip a file (or group of files) from the command line using Windows 2003? I'd prefer to use built-in commands if possible.

user2367
  • 133
  • 1
  • 1
  • 5

3 Answers3

4

I'm not sure it's possible to do it from the command line using only built-in commands. But you can use 7-Zip from the command line; the great thing about 7-Zip is that it's free and open-source.

Here's a quick tutorial on using the 7-Zip CLI. Hope this helps you out!

alex
  • 17,684
  • 7
  • 54
  • 77
  • I'm a fan of 7-zip. Annoying that I need a 3rd party tool to do what Windows can do natively via UI. – user2367 Sep 05 '09 at 04:30
  • It's strange indeed. But the Windows zip functionality is not great. It's incredibly slow to archive or unarchive something using the built in tools (from what I remember, it's an order of magnitude slower compared to WinRar or 7-Zip). – alex Sep 05 '09 at 06:24
  • How to set "version to extract"? Default is 2.0, But I want to set it to 1.0 – Dr.jacky Nov 27 '16 at 07:40
3

Actually, it can be done with built-in Windows commands (much to my surprise, I had pretty much concluded the same as Molly7244).

A very tricky (but perfectly workable) method is described in this other question:

Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

peterg4000
  • 31
  • 1
1

Using zip and unzip on the Windows command line

And no, you can't use the 'integrated' Windows ZIP functionality from the commandline.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90