Zipping and Compression using Windows XP Professional

an article added by: Torres M. at 06152007


In: Root » Computers and technology » Windows XP » Zipping and Compression using Windows XP Professional

French Spanish Portuguese Italian German Japanese Chinese Korean Russian Arabic

Zipping and Compression

Windows XP supports two very different kinds of file compression. The distinction is confusing but important, so bear with me. File compression reduces the size of a file by cleverly taking out parts of the contents of the file that aren’t needed, storing only the minimum amount of information necessary to reconstitute the file extract it into its full, original form. A certain amount of overhead is involved, because the computer has to take the time to squeeze extraneous information out of a file before storing it, and then the computer takes more time to restore the file to its original state when someone needs the file. But compression can reduce file sizes enormously. A compressed file often takes up half its original space even less, in many cases. How does compression work? That depends on the compression method you use. In one kind of compression, known as Huffman encoding, letters that occur frequently in a file (say, the letter e in a word processing document) are massaged so that they take up only a little bit of room in the file, while letters that occur less frequently (say, x) are allowed to occupy lots of space. Instead of allocating eight 1’s and 0’s for every letter in a document, say, some letters may take up only two 1’s and 0’s, while others could take up 15. The net result, overall, is a big reduction in file size. It’s complicated, and the mathematics involved gets quite interesting. Windows XP’s two file compression techniques are as follows:  -  Files can be compressed and placed in a “Compressed (zipped) Folder,” with an icon to match.  -  Files, folders, or even entire drives can be compressed using NTFS’s built-in compression capabilities. Here’s where things get complicated. NTFS compression is built into the file system: You can use it only on NTFS drives, and the compression doesn’t persist when you move (or copy) the file off the drive. Think of NTFS compression as a capability inherent to the disk drive itself. That isn’t really the case Windows XP does all the sleight-of-hand behind the scenes but the concept will help you remember NTFS compression’s limitations and quirks. Although Microsoft would have you believe that Compressed (zipped) Folder compression is based on folders, it isn’t. A Compressed (zipped) Folder is really a file not a folder but it’s a special kind of file called a Zip file. If you’ve ever encountered Zip files on the Internet (they have a filename extension of .ZIP and they’re frequently manipulated with programs such as WinZip, www.winzip.com), you know exactly what I’m talking about. Zip files contain one or more compressed files, and they use the most common kind of compression found on the Internet. Think of Compressed (zipped) Folders as being Zip files, and if you have even a nodding acquaintance with ZIPs, you’ll immediately understand the limitations and quirks of Compressed (zipped) Folders. Microsoft calls them Folders because that’s supposed to be easier for users to understand. You be the judge. If you try to compress the drive that contains your Windows folder, you won’t be able to compress the files that are currently in use by Windows. To use NTFS compression on an entire drive, follow these steps:

1. Make sure that you are a full-fledged Administrator (see Article I, Article 6).

2. Choose Start -> My Computer and right-click the drive that you want to compress. Click Properties and click on the General tab 3. If the drive is formatted with NTFS, you see a check box saying Compress Drive to Save Disk Space. Select this check box. 4. Click OK. Windows asks you to confirm that you want to compress the entire drive. Windows takes some time to compress the drive in some cases, the estimated time is measured in days. Good luck. To use NTFS compression on a folder or single file, follow these steps:

1. Make sure that you are a full-fledged Administrator.

2. Navigate to the folder or file you want to compress (for example, choose Start -> My Documents or Start -> My Computer). Right-click on the file or folder you want to compress. Click Properties and click the Advanced button on the General tab. 3. Select the Compress Contents to Save Disk Space check box and click OK. To uncompress a file or folder, go back into the Advanced Properties dialog box (right-click the file or folder, click Properties, and then click Advanced) and deselect the Compress Contents to Save Disk Space check box. To use Zip compression, er, Compressed (zipped) Folders, you must first create a Zip file, er, a Compressed (zipped) Folder. Here’s how:

1. Choose Start -> My Documents to navigate to the folder that you want to contain your new Zip file.

2. Right-click in any convenient empty location within the window and choose New -> Compressed (Zipped) Folder. Windows responds by creating a new Zip file, with a .ZIP filename extension, and placing it in the current folder. The new file is just like any other file you can rename it, copy it, move it, delete it, send it as an e-mail attachment, save it on the Internet, or do anything else to it that you can do to a file. (That’s because it is a file.)

3. To add a file to your Compressed (zipped) Folder, simply drag it onto the zipped folder icon.

4. To copy a file from your Zip file (uh, folder), double-click the zipped folder icon, and treat the file the same way you would treat any regular file.

5. To copy all of the files out of your Zip file (folder), click Extract All Files in the Folder Tasks Pane. You see the Windows XP Compressed (zipped) Folders Extraction Wizard, which guides you through the steps. The Compressed (zipped) Folders Extraction Wizard places all the copied files into a new folder with the same name as the Zip file which confuses the living bewilickers out of everybody. Unless you give the extracted folder a different name from the original Compressed (zipped) Folder, you end up with two folders with precisely the same name sitting on your desktop. Do yourself a huge favor and feed the wizard a different folder name while you’re extracting the files.

legal disclaimer

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

related articles

1. Firewall Software under Windows XP
Stopping Break-ins: Firewalls It may seem like an odd form of entertainment, but there’s a whole sub- culture out there of people who spend their time trying to break into other people’s computers. Some of these people are just in it for the game, but others are cracking into computers as a way to steal personal and corporate information. As anyone who has ever had to deal with identity theft can tell you, taking back control of your life after someone has stolen your credit card numbers, co...

2. Internet connection and Windows XP
The Internet has become such an essential part of most people’s experience that it’s sometimes difficult to know where your own computer stops and the Internet begins. For most of us, it doesn’t matter if a particular resource is physically located on a local hard drive (one inside your PC or a network server) or a computer halfway around the world. Either way, it’s just a matter of keystrokes and mouse clicks to view it on the screen or listen to it through speakers plugged into your computer. ...

3. How to setup a local network in Windows XP
LOCAL NETWORK PROBLEMS Any time two or more computers and their related devices are under the same roof, they should probably connect to one another through a etwork. Networking allows users to share files and printers and to share access to the Internet through a common modem or broadband connection. Windows XP includes tools and wizards that make it relatively simple to set up a network, but a network is always more complicated than an isolated, stand-alone computer. Network problems don’t oft...

4. Windows XP activation and hardware problems
Not every computer failure is caused by a software issue. Many problems that appear to be related to Windows are actually caused by some kind of hardware malfunction or by a conflict between two or more incompatible hardware components inside the computer. This article describes many of the most common problems that you might encounter when you try to add, move, or change a component inside your computer. Most of these problems have relatively easy solutions if you know where to look. Finding and fixing hardware problems requ...

5. Installing a New Hard Drive on Windows XP Professional
Hard drives are a special case. On a cost- per-bit basis, drives are cheap and getting cheaper all the time. When a drive fails, the cost of replacing the physical device is relatively small, but the data stored on the old drive is often irreplaceable. So you shouldn’t throw away an apparently broken drive until you have done everything possible to recover the data, and you shouldn’t do anything to the drive that might erase or damage any more data. When your boot drive (almost always the C: dri...

6. How to recover data from a corrupted hard drive using Windows XP Pro
Recovering Your Data Unless the physical platters inside the drive are severely damaged, it’s probably possible to recover the data from a bad drive. In extreme cases, you might need to send the drive to a very expensive recovery service that will take the drive apart in a clean room environment and replace the damaged parts, but it can be done. Before you spend that money, try the techniques in this section to read your files with special recovery software. The most important thing to ...

7. How to move a hard drive to a new computer under Windows XP
Moving a Hard Drive to a New Computer Moving an old drive to a new computer is often the best way to continue using the same data after you start using the new machine. However, it’s often not possible to use the old drive as the boot drive (the C: drive) on your new computer. You can’t just drop the old drive into the new box and use the Windows software that you installed on the old computer. Unless the old and new computers are exactly the same make and model or they use exactly the same m...

8. Adding more RAM under Windows XP
Hard drives aren’t the only parts of a computer that can fail. Memory modules, the central processor, the motherboard, the power supply, and all of the peripheral devices that allow the computer to exchange data with the rest of the world can stop working properly. Obviously, troubleshooting a memory module is very different from trying to fix a mouse or a keyboard, so this article contains specific advice about fixing many of the most common devices and components in and around your computer. Memory ...

9. Mouse, Keyboard, Motherboard and Power Supply Problems
Replacing the Motherboard Installing a new motherboard is the computer equivalent of a brain trans- plant. It’s major surgery that replaces the central components that control everything the computer does. Obviously, you won’t perform a motherboard swap very often, but if you are a truly dedicated hardware geek and you’re not afraid to tear the whole computer apart, it can be done. Just follow the instructions that come with motherboard, take your time, and double-check all the li...