Solved

compressing in command line?

Posted on 2006-07-19
3
307 Views
Last Modified: 2010-04-18
hi, i see that windows 2003/xp has built-in compression utility. could it be done via command line?
i just need to compress single file, if possible , being able to set the compression level.
0
Comment
Question by:dynamicrevolutions
3 Comments
 
LVL 2

Accepted Solution

by:
mmendezs earned 200 total points
ID: 17143518
The COMPACT command is what you are looking for.
Here is an article by microsoft:

http://www.microsoft.com/windowsxp/using/setup/learnmore/tips/foumberg2.mspx

Best regards
Mauricio
0
 
LVL 2

Assisted Solution

by:kjpus
kjpus earned 200 total points
ID: 17143621
It's also fairly easy to use bzip2 (either the pre-compiled binary or compiling from source code). http://www.bzip.org/

You can even integrate the library into your own program without invoking another command line tool.

0
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 100 total points
ID: 17143649
dynamicrevolutions,
> being able to set the compression level.

Not sure what you mean by this - assuming you mean setting if the compression is FAST and not HIGHLY compressed versus SLOW and HIGHLY compressed, there is no control like that.  NTFS compression is not adjustable.  It's compressed or it's not.  

Other utilities (and one I use) is zip.exe which is InfoZip - available for FREE with varying levels of compression from:
http://www.info-zip.org/
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 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