|
Summary: Windows File Compression automatically compresses files so that they take up less space. In the best circumstance Windows File Compression can free up a lot of space - but frequently it's not as much as you might expect, and there is cost. 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? "My advice? Don't bother."
I'd consider the following:
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:
Article 10468 | Posted July 3, 2006 |
Popular & Hot How do I make a new MSN Hotmail account? How do I delete history items from my Google tool bar? My desktop Recycle Bin has disappeared - why, and how do I get it back? How do I delete my Hotmail account? I accidentally deleted my Recycle Bin in Vista - how do I get it back? New & Important How can I get the old Windows Live Hotmail back? Internet Safety: How do I keep my computer safe on the internet? Are free email services worth it? Would you please recover my password? My account has been hacked or I've forgotten it.
Stay Informed Archives Advertisers |
•
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You can select multiple files at once - hold down CTRL as you click on files to
add them one at a time, or hold down shift to select all files between the
first on you click on and the second. Or type CTRL+A to select all files. Then
right click on the multiple files and select properties. If you select a
folder, it'll ask if you want the change to be applied to all files in
subfolders as well.
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFGxPdMCMEe9B/8oqERApQxAJwMfACRY3GcBXwWQAjbH4YLrOGxzgCghd8T
Posted by: Leo A. Notenboom at August 16, 2007 6:17 PMhBfN07gMzrC9ybk9iNAZB7g=
=Lmmj
-----END PGP SIGNATURE-----
I have accidently compress alarge amount of my XP PRO NTFS drive. How do I undo the compression without going to each individual file and reseting its properties?
rgards
Posted by: martin b at December 5, 2007 8:25 PMMartin B
Martin-
You can use the 'compact' command in DOS. Open command prompt and type:
compact /u /s:C:\ /a /q /i
This will uncompress the entire C drive.
To uncompress a specific directory type:
Posted by: andrew at February 7, 2008 2:13 AMcompact /u /s:C:\[folder] /a /q /i
i am trying to uncompress my compressed old files from a disk cleanup, and used the following instructions:
You can use the 'compact' command in DOS. Open command prompt and type:
compact /u /s:C:\ /a /q /i
This will uncompress the entire C drive.
To uncompress a specific directory type:
compact /u /s:C:\[folder] /a /q /i
however, i am getting the following error:
'compact' is not recognized as an internal or external command, operable program or batch file.
any suggestions?
- sheri
Posted by: sheri at February 18, 2008 7:13 PM-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Should be in c:\windows\system32\compact.exe in Windows XP.
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFHvF98CMEe9B/8oqERAqUQAJ0QGeLmoR8SUx3Xw0qYp0aE++bwDQCeJIyG
Posted by: Leo A. Notenboom at February 20, 2008 9:12 AMu+Qu6xDUFaVIf7DfJMIKjKM=
=nA+a
-----END PGP SIGNATURE-----
great newsletter/website. here's my problem; removing items from drive C does not give me extra space! in fact, I LOSE space! can you please talk me thru this prob/tired paying local techs, who dont get the job done. please reply to my e-mail address. any help much appreciated. one more thing; i'm a writer, not a puter whiz, just know and use the basics. thnx
Posted by: mick rhodes at April 13, 2008 12:03 PM-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It depends on which files you're attempting to delete and
exactly how you're deleting them. I'd first make sure that
you empty your recyle bin (right click on it and click on
"Empty") to reclaim the space.
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFIA1bOCMEe9B/8oqERAtJAAJ95eyw56oHQTOcA37nXbGci2wCu6ACffy4Y
Posted by: Leo A. Notenboom at April 14, 2008 6:07 AM6LlmFCGC/HnDAfhZJLfTEUM=
=3aJS
-----END PGP SIGNATURE-----
I want to uncompress all of the files that disk cleanup compressed; how exactly can I do this for all files on my C drive - I have XP Windows operating system. Previous comments were not explicit and exacting for XP.
Posted by: NW at August 21, 2008 9:06 PMAndrew you are a lifesaver :) Thanks bro.
Posted by: Chris at August 25, 2008 3:51 PMTo decompress the entire drive, should I use SAFE MODE and:-
DOS command "compact /u /s:C:\ /a /q /i"; or
Windows C:\ properties and check the box to
"Compress drive to save Disc space" and click Apply,
and then UNcheck the box and Apply then OK ?
I am using pre-installed Windows XP Home edition with SP2 + SP3, and have no installation disc.
When Disc Cleanup compressed files Windows File Protection refused to trust Windows own utility, and validated all registered dlls etc., and dumped uncompressed copies into dllcache, and gave me excessive grief, demanding that I give it the non-existent installation disc.
I assume W.F.P. will also complain about decompressing files, which is why I want to use SAFE MODE to avoid W.F.P. involvement.
C: Windows properties has the Disc Cleanup option, and it also shows
"Used Space 7,825,747,968".
Windows Explorer, selecting the entire contents of C:\ and showing all the hidden/system/etc things reports
Size : 7.38 GB (7,933,352,967 bytes)
Size on Disc: 6.49 GB (6,979,273,055 bytes)
This seems to omit
7,825,747,968 - 6,979,273,055 = 846,474,913 bytes.
About 500 Mbytes are in my daughter's profile which is hidden from me, so another 346 MBytes are other things that Windows will not let me see.
Both Windows and DOS hide 10% of all files, so I fear that both the DOS command, or selecting the entire contents Windows will show me, will only decompress the 90% I can see, and to decompress the other 10% I need to use "(C:) Properties"
I would greatly appreciate your advice upon this.
Would you please advise on the safest methods.
My greatest fear is that Windows defragmentation will blow a fuse and give me perpetual BSODs. I use Acronis Trueimage and am happy to restore upon any errors - so long as I dont have the trauma of a broken system and need to use the recovery console.
Regards
Posted by: Alan Borer at November 20, 2008 9:02 AMAlan Borer.