Disk Cleanup

Disk Cleanup
Disk Cleanup
A component of Microsoft Windows
Windows Vista Disk Cleanup.png
Screenshot of Disk Cleanup in Windows Vista
Type Disk maintenance application
Included with Windows 98, 2000, Me, XP, Server 2003, Vista, Server 2008, 7, Server 2008 R2
Related components
Desktop Cleanup Wizard

Disk Cleanup (cleanmgr.exe) is a computer maintenance utility included in Microsoft Windows designed to free up disk space on a computer's hard drive. The utility first searches and analyzes the hard drive for files that are no longer of any use, and then removes the unnecessary files. There are a number of different file categories that Disk Cleanup targets when performing the initial disk analysis:

  • Compression of old files
  • Temporary Internet files
  • Temporary Windows file
  • Downloaded Program files
  • Recycle Bin
  • Removal of unused applications or optional Windows components
  • Setup Log files
  • Offline files

The above list, however, is not exhaustive. For instance, 'Temporary Remote Desktop files' and 'Temporary Sync Files' may appear only under certain computer configurations, differences such as Windows Operating System and use of additional programs such as Remote Desktop. The option of removal hibernation data may not be ideal for some users as this may remove the hibernate option.

Aside from removing unnecessary files, users also have the option of compressing files that have not been accessed over a set period of time. This option provides a systematic compression scheme. Infrequently accessed files are compressed to free up disk space while leaving the frequently used files uncompressed for faster read/write access times. If after file compression, a user wishes to access a compressed file, the access times may be increased and vary from system to system. In addition to the categories that appear on the Disk Cleanup tab, the More Options tab offers additional options for freeing up hard drive space through removal of optional Windows components, installed programs, and all but the most recent System Restore point or Shadow Copy data in some versions of Microsoft Windows.



Windows Disk Cleanup can be used in 2 ways.
Method 1

  • Select the program from Start Menu > All Programs > Accessories > System Tools

Here you can select to cleanup the following areas:

  • Downloaded Program Files
  • Temporary Internet Files
  • Offline Webpages
  • Recycle Bin
  • Temporary Files
  • WebClient/Publisher Temporary Files
  • Temporary Offline files
  • Offline files
  • Compressed old files

Method 2
The second option allows you to predefine what areas are to be cleanup, store these settings in the registry so that Disc Cleanup can be run at a later date using a command line option that uses your predefined selected areas. This method also allows you to export the registry settings and place them in some sort of script to be imported to remote machines, i.e. at shutdown or maybe even create a weekly task. When using this method the user will still see the 2 box's to show the cleanup process examining the the system and running the cleanup schema

  • Select Start Menu > run

Type the following command

cleanmgr.exe /d c /sageset:1

cleanmgr.exe - request the program /d - um, I dont know, its just needed c - states the drive to cleanup - though it seems to just do them all whenever I use it sageset: - defines this command as a registry entry to record The digit one - or any number, this allows you to create more then one schema to save settings under using the above command give you the following extra areas to cleanup that are not available using method 1

  • Debug Dump Files
  • Old ChkDsk Files
  • Temporary Remote Desktop files
  • Setup log files
  • Catalogue files for the Content Indexer

To execute your predefined areas to cleanup use the following command:
cleanmgr.exe /d c /sagerun:1
Sagerun: - states that this command is to be run and not saved in the registry
The digit one - states what pre defined selections to use


See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Disk Cleanup — …   Википедия

  • Disk Defragmenter (Windows) — Disk Defragmenter A component of Microsoft Windows Disk Defragmenter in Windows 7 …   Wikipedia

  • Disk editor — A disk editor is a computer program that allows its user to read, edit, and write raw data (at character or hexadecimal, byte levels) on disk drives (e.g., hard disks, USB flash disks or removable media such as a floppy disks); as such, they are… …   Wikipedia

  • Disk space analyzer — A disk space analyzer (or disk usage analysis software) is a software utility for the visualization of disk space usage by getting the size for each folder (including sub folders) and files in a folder or drive. Most of these applications analyze …   Wikipedia

  • Logical Disk Manager — The Logical Disk Manager (diskmgmt.msc) is an implementation of a logical volume manager for Microsoft Windows NT, developed by Microsoft and Veritas Software. It was introduced with the Windows 2000 operating system, and is supported in Windows… …   Wikipedia

  • Windows 98 — Part of the Microsoft Windows family …   Wikipedia

  • Windows Explorer — This article is about the Windows file system browser. For the similarly named web browser, see Internet Explorer Windows Explorer A component of Microsoft Windows Details Included with Microsoft Windows …   Wikipedia

  • Technical features new to Windows Vista — This article is part of a series on Windows Vista New features Overview Technical and core system Security and safety Networking technologies I/O technologies Management and administration Removed features …   Wikipedia

  • List of Microsoft Windows components — The following is a list of Microsoft Windows components. Contents 1 Configuration and maintenance 2 User interface 3 Applications and utilities 4 Windows Server components …   Wikipedia

  • Roaming user profile — C:Documents and Settings{username}   Application Data   …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”