Solved

compressing in command line?

Posted on 2006-07-19
3
308 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best practice DHCP migration 7 77
Computer crashes, following error message in event manager 5 324
why user can't see mapped share folder 8 71
Time server on domain 3 64
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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