Windows Vista: The Complete Reference (Complete Reference Series)

When Windows notices that there's not much free space left on the disk on which Windows is installed (usually C:), it offers to run Disk Cleanup, a program that can delete unneeded temporary files from your hard disk. Some programs create temporary files and then don't delete the files when they are through with them. If a program, or Windows itself, exits unexpectedly (or "crashes"), temporary files can be left on your hard disk. Deleting these files from time to time is a good idea, not only because they take up space, but also because their presence can confuse the programs that created them.

Types of Temporary Files That Disk Cleanup Can Delete

Disk Cleanup may suggest deleting these categories of unnecessary files:

Caution  

Disk Cleanup may recommend deleting files that haven't been used in months, without regard to type. When you click some categories in the Disk Cleanup dialog box, a View Names button appears. Take a look at the names of the files it recommends deleting to make sure that they don't include important documents that you haven't used in months but want to keep.

Running Disk Cleanup

Here's how to run Disk Cleanup any time, not just when Window notices that space is running low:

  1. Right-click the disk drive in the Computer window and choose Properties. In the Properties dialog box for the disk, click Disk Cleanup on the General tab. The Disk Cleanup program runs and asks which disk you want to clean up. Choose a disk drive and click OK. The Disk Cleanup program checks the disk for unnecessary files and displays a window, shown in Figure 35-2, that tells you how much disk space you can reclaim by deleting temporary files right now. Of course, this may include temporary files that your programs are currently using!

    Figure 35-2: The Disk Cleanup's list of temporary files to delete.

  2. Click the box for each type of temporary file you want Disk Cleanup to delete. For more information on a type of temporary file, click the description; the program displays an explanation of what the files are and what folders Disk Cleanup will delete them from.

  3. For additional options, if you have administrator privileges and are choosing to clean everyone's files, click the More Options tab. Three buttons provide other ways to free up disk space, including deleting Windows components you don't use, uninstalling programs, and reducing the amount of space used by the System Restore program (see "Returning Your System to a Predefined State with System Restore" in Chapter 37). Click the corresponding button to try any of these methods .

  4. If you want to see the names of the files that will be deleted (in a separate Explorer window), select the type of files to be deleted and click the View Files button.

  5. To begin deleting files, click OK. The program asks whether you are sure you want to delete files. Click Yes.

Note  

The programs shown on the More Options tab that can free up disk space are one-time operations. If you schedule the Disk Cleanup program to run on a regular basis (using Scheduled Tasks), these other programs do not run (see "Running Programs on a Schedule Using Scheduled Tasks" in Chapter 37).

Disabling Low Disk Space Notification

If your Windows disk is chronically close to full and you don't want Windows to check for low disk space, you can turn this service off. You'll need to edit the Registry to make this change. After backing up your Registry, open the HKEY_CURRENT_USER/Software/ Microsoft/Windows/CurrentVersion/Policies/Explorer key. Set the value of the NoLowDiskSpaceChecks key to 1. If there is no key by that name, right-click the Explorer key, choose New DWORD Value from the menu that appears, name the new key NoLowDiskSpaceChecks , and press ENTER. Double-click the new key and type 1 for its value. Restart Windows to complete the change.

Категории