Should I Use Windows File Compression?
- 10
- Add a Comment
- No Related Post
I am running Windows 2000 and I am wondering if I should run the Disk Cleanup (compress old files). It is currently taking up 14372KB of space.
Should I compress old files?
While you’re only asking about Disk Cleanup, I’m going to talk about Windows File Compression in more general terms. Using file compression to save space is nothing new, even when it’s native in the file system used by Windows. But it’s not necessarily a slam dunk.
In fact, without knowing more, I get to use all of my favorite answers:
Yes.
No.
It depends.
After you’ve finishing beating your head against the computer, read on, and I’ll explain why.
Windows File Compression is a part of the NTFS file system that when enabled, automatically compresses files to take up less space. Seems simple enough, right?
As a gross oversimplification compression means replacing one representation of data with another that takes up less space. For example the string “**********” (10 asterisks) might be replaced with three characters - “10*” - meaning “ten asterisks.” When decompressed the “10*” would get transformed back into “**********.” Now, of course there are complications - for one example we need a way to make sure that if there’s a “10*” in the data before compression we don’t try to turn it into “**********” on decompression.
Suffice it to say that real compression algorithms are a complex technology, bordering on an art form.
So if good compression can “makes things smaller,” what’s the catch?
In my opinion, there are two big ones.
Compression is Work - One thing that they all compression algorithms share is that they require calculation. That means when you compress or decompress a file on your computer, your CPU needs to do more work than if the file were not compressed. Different algorithms have different characteristics - some require a great deal of CPU processing to compress the data, while the decompression can be lightning fast. Others compress comparatively poorly, but take less time to do it.
Compressing files that are already compressed doesn’t help. - A file that has already been compressed by a reasonably good compression algorithm will typically not compress well if you try to compress it again with another. In fact, in the worst case, a “compressing” a compressed file can sometimes even make it bigger. And here’s the catch within the catch: many files you use ever day are already compressed. Typically audio, video and image formats are already using compression algorithms as part of the file format. “.mp3,” “.jpg,” “.mpg” files, and similar, are all already compressed, and typically to not benefit much from attempts to compress them further.
So what should you do? When should you consider compression?
I’d consider the following:
- If the files you’re considering compressing are used infrequently, then they might be candidates. The “old files” from a disk cleanup utility probably fall into this category.
- If the files you’re considering compressing aren’t already compressed, then it could make sense. There’s no way for me to know what files disk cleanup is pointing you at, so I can’t say how this might apply to you.
- If you have a powerful enough CPU, you can compress files used more frequently. I definitely wouldn’t compress files I use frequently on an older machine. It can slow down your machine as the CPU gets more involved in every disk access.
- Realize that compressed files and compressed file systems are harder to recover in the event of a crash. Make sure that you’re appropriately backed up.
My advice? Don’t bother. Compression on average will probably recover only about 50% of the space used by files you compress. If you’re really running into space problems that have you looking at this, you’re probably better off adding a hard drive to your system.
I have no compressed file systems on any of the computers I run. I’ve done so in the past only on laptops where adding or replacing a hard drive just wasn’t in the cards for me, and only after I’ve started to run out of space and other options didn’t free up enough.
If you want to investigate file compression further, note that when using NTFS compression is not all-or-nothing. For example you can select which folders should be compressed. Just right click on the folder in Windows Explorer, select Properties, and on the General tab, click on Advanced. There you’ll see Compress contents to save disk space. Select that and the folder and optionally all folders within it will be compressed and all further files placed in those folders will be automatically and transparently compressed. Don’t do that to active folders, such as C:\Windows or c:\Windows\System32 for example, because it’ll adversely impact your performance. But if you have large collections of data that aren’t already compressed, and aren’t used that frequently, and your CPU won’t get in the way, it might be an option.
And in the long run, allowing your disk cleanup utility to compress old files likely won’t hurt. It probably just won’t get you a lot either.
Related:
- Ask Leo! - Can I ZIP my pictures or MP3 files to save space?
- Ask Leo! - What kind of Compression or Encryption do I want for Outlook’s .PST files?

10 Comments
Angela
January 11th, 2007
at 8:46am
Hello! Can you help me please? You mentioned above about that it’s harder to recover compressed file systems after a crash, well that is exactly what happened to me, i accidentally reformated the whole hard disk instead of just the C partition, and now I’m using a disk recovery program to recover the files, but now the program (Active Undelete) is saying that it can’t decompress the compressed files. Does some expert out there who knows more than me know which program I could use to recover and use those files? (most are video files, i video edit often as a part of my job) Thanks!
Angela
Phil Pagelowski
February 3rd, 2007
at 5:14pm
How can a user *DEcompress* a Windows (XP) compressed file without using Windows’ built-in decompressor?
Thanks.
Stephanie
May 19th, 2007
at 7:42am
Decompressing C Drive Efficiently and Safely:
Hi,
I compressed ALL my files on the C drive…and I need to decompress them. I bought an external hard drive, and copied over all of the files that I require so if my computer doesn’t like being decompressed I still have all my files…now is the part I require help with!!!
My hard drive is 37.2GB, and has 5.65GB of free space currently available. I am guessing the compression factor would be about 50% from the original file form? The only way I have discovered to decompress files is all at once by right clicking on the C drive and going from there…so if my computer is this full, is there a way to decompress a little at a time…possibly removing repeated files on my C drive that are also on the new external to allow my computer that extra breathing space while it decompresses? I am afraid that if I don’t leave it enough space it will completely crash on me. The estimated time was about 15 days as well. Are there factors to keep the decompression process fast and safe? Also, will decompressing damage my files in any way or make them less than their original format? I am concerned about important Autocad Files and Photography. I am keeping all copies of my important files on an external drive, so the issue is how to decompress properly and fast…Please help, 15 days is a LONG time…I was suggested to buy something for faster file transfer. What are your thoughts???
Tim
August 24th, 2007
at 1:55pm
Are there any windows based file compression utilities that will compress files if they are inactive for a couple of days.
Tim
August 24th, 2007
at 1:57pm
Im trying to decrease loads on our servers from compressing and decompressing files.
Mate Dobray
August 28th, 2007
at 4:36am
I have recently used Compress Old Files in the Disk Cleanup Utility on my Windows XP Pro machine when I only had 1 GB left and the system was about to crash seriously. It freed 7 Gb on my secondary hard drive and it saved my life, but I realized that it didn’t compress entire folders, it only compressed about 90% of the files in each folder (Mostly JPEG photos and mp3 music).
I have freed a lot of disk space since that event, so I no longer want to keep these files compressed.
The problem is that since it didn’t compress any folder entirely, when I go to the properties for the folder, in the “Advanced” option, the “Compress Contents to Save Disk Space” is NOT checked. Therefore, I cannot uncheck it.
This leaves me to two apparent solutions:
- Compress all files on my hard drive in order to have that option Checked, to be able to Uncheck it so all the (compressed) files become decompressed
- Right click, Propreties, Advanced, Uncheck, and click OK on about 800000 files manually.
Now my question is: is there a SIMPLE way to uncompress ALL the compressed files on my computer? Or at least all the compressed files WITHIN a given folder? I know this is going to take a lot of time, but I want the process to be automatic, without me having to be there.
vinny
October 12th, 2007
at 10:31am
i have the exact same problem as mate dobray, did you find a solution mate? or anyone? cheers!
vinny
October 12th, 2007
at 10:41am
i found a way mate!
goto command prompt then change to the root of the drive u want to decompress files and folders on then run this command
compact /u /s /a /q /i
check the command here
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/compact.mspx
threeiem
December 6th, 2007
at 6:44pm
vinny!! Thank you so much! We have a archive that we store and we where afraid that the compression would no be valid over the lifetime of the digital archive that we house. This was accidentally performed on a very large disk array and ended up taking hours to complete, but thankfully fixed this major problem for us.
Again, thank you so much!
DeeBee
January 17th, 2009
at 9:50pm
Thank you