Solved

compressing in command line?

Posted on 2006-07-19
3
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 96

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

623 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