Solved

compressing in command line?

Posted on 2006-07-19
3
303 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

8 Experts available now in Live!

Get 1:1 Help Now