Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Compressing files in windows

I want to compress a file using the command line. This command-line

C: compact /c aa.xml

returns a successful message but I can't see any ZIP file in the C folder. Where is the problem?

share|improve this question

migrated from May 14 '10 at 10:22

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

marked as duplicate by quack quixote May 14 '10 at 10:40

This question was marked as an exact duplicate of an existing question.

I'll give you a hint: compact doesn't compress things. It tells NTFS to do so. – Marcelo Cantos May 14 '10 at 10:10
If you want to compress from shell, install command-line archiver and put it in path. – SigTerm May 14 '10 at 10:14

The COMPACT command isn't for compressing file like zip compression.

If you want create zip file via the command line, try the 7-Zip application. Here are examples for using it from the command-line:

share|improve this answer