Although the hard drives made these days have greater capacities than ever, programs and files are much bigger, too. Running out of disk space is still a common problem. Fortunately, Windows XP Pro is especially effective at compressing files and folders to take up less disk space.
Compressing files and folders can also be useful when you want to email files to someone without dooming them to an all-night modem-watching session. That's why Microsoft has endowed Windows XP with two different schemes for compressing files and folders: NTFS compression for storing files on your hard drive, and zipped folders for files that might have to be transferred. 15.2.1 NTFS CompressionIf Windows XP Pro was installed on your PC when you bought it, or if you upgraded your PC from Windows 2000, or if you erased your hard drive before installing Windows XP, then your hard drive is probably formatted using a file system called NTFS (short for NT file system; see Section A.4 for details). Most people can live a long and happy life without knowing anything about NTFS. If you work in a corporation, you might be grateful for the additional security it offers to Windows XP Pro fans (Chapter 17), and leave it at that. Now and then, however, you'll read about other features that are available only if your hard drive was prepared using NTFS ”and this is one of those cases. NOTE To find out whether or not your hard drive uses NTFS formatting, choose Start My Computer. Right-click the hard drive icon; choose Properties from the shortcut menu. In the resulting dialog box, you'll see either "File system: NTFS" or "File system: FAT 32." (If it says FAT 32, you probably upgraded your PC from Windows 98 or Windows Me.) Unfortunately, special NTFS features like automatic compression aren't available to you, but you can upgrade your drive formatting to NTFS without having to erase it. See Section A.4 for instructions. The NTFS compression scheme is especially likable because it's completely invisible to you. Windows XP Pro automatically compresses and decompresses your files, almost instantaneously. At some point, you may even forget you've turned it on. Consider:
15.2.1.1 Compressing files, folders, or disksTo turn on NTFS compression, right-click the icon for the file, folder, or disk whose contents you want to shrink. Choose Properties from the shortcut menu. Click the Advanced button, and in the resulting dialog box, turn on "Compress contents to save disk space" (Figure 15-9). If you have selected a folder for compression, you are prompted as to whether you also want to compress the files and subfolders within it. Figure 15-9. If you don't see the "Compress contents to save disk space" checkbox (highlighted here), then your hard drive probably doesn't use the NTFS formatting scheme.Many Windows veterans wind up turning on compression for the entire hard drive. It can take Windows XP several hours to perform the initial compression of every file on the drive. (If you plan to go see a movie while Windows is working, though, quit all your programs first. Otherwise, the compression process will halt whenever it encounters an open file ”waiting for you to close the file or tell Windows to ignore it ”and you'll find the job only half done when you return.) When Windows is finished compressing, the compressed file and folder icons appear in a different color, a reminder that Windows is doing its part to maximize your disk space. (If they don't change color, somebody ”maybe you ”must have turned off the "Show encrypted or compressed NTFS files in color " option described in Section 3.2.4.) When you look at the Properties dialog box for a compressed file (right-click the file and choose Properties from the shortcut menu), you can see two file sizes. The Size value indicates the actual (uncompressed) size of the file, and the Size On Disk value is the compressed size of the file, that is, the amount of disk space it is occupying. 15.2.2 Zipped FoldersAs noted above, NTFS compression is great for freeing up disk space while you're working at your PC. But when you email your files to somebody else or burn them to a CD, Windows XP always decompresses them right back to their original sizes first. And, of course, NTFS compression isn't even an option if your hard drive doesn't use NTFS formatting (Section A.4). Fortunately, there's another way to compress files: Zip them. If you've ever used Windows before, you've probably encountered Zip files. Each one is a tiny little suitcase, an archive, whose contents have been tightly compressed to keep files together, to save space, and to transfer them online faster (see Figure 15-10). Use Zip files when you want to email something to someone, or when you want to pack up a completed project and remove it from your hard drive to free up space. Figure 15-10. Top: A Zip archive looks like an ordinary folder ”except for the tiny zipper . Bottom: Double-click one to open its window and see what's inside. Notice (in the Ratio column) that JPEG graphics and GIF graphics usually don't become much smaller than they were before zipping, since they're already compressed formats. But word processing files, program files, and other file types reveal quite a bit of shrinkage .15.2.2.1 Creating zipped foldersIn Windows XP, you don't even need a shareware program like PKZip or WinZip to create or open Zip files. You can create a Zip archive in either of two ways:
NOTE At this point, you can right-click the zipped folder's icon and choose Send To Mail Recipient. Windows automatically whips open your email program, creates an outgoing message ready for you to address, and attaches the zipped file to it ”which is now set for transport. 15.2.2.2 Working with zipped foldersIn many respects, a zipped folder behaves just like any ordinary folder. Double-click it to see what's inside. If you double-click one of the files you find inside, however, Windows opens up a read-only copy of it ”that is, a copy you can view, but not edit. To make changes to a read-only copy, you must use the File Save As command and save it somewhere else on your hard drive. NOTE Be sure to navigate to the desktop or the My Documents folder, for example, before you save your edited document. Otherwise, Windows will save it into an invisible temporary folder, where you may never see it again.
To decompress only some of the icons in a zipped folder, just drag them out of the archive window; they instantly spring back to their original sizes. Or, to decompress the entire archive, right-click its icon and choose Extract All from the shortcut menu (or, if its window is already open, click the "Extract all files" link on the task pane). A wizard asks you to specify where you want the resulting files to wind up. |