Windows Built-In Capabilities for Hard Drive Cleaning
To keep a PC running smoothly, regular maintenance is critical. Many users shy away from maintenance tasks, thinking it is a long, drawn out manual affair, but the Disk Cleanup Utility can easily determine which files on a hard drive may no longer be needed and delete those files. In addition to freeing up potentially significant amounts of hard drive space, using Disk Cleanup on a regular basis can significantly improve system performance.
How do I use the Windows disk clean up tool to clean hard drive data?
The Disk Clean Up tool helps you free up space on your hard disk by searching your disk for files that you can safely delete. You can choose to delete some or all of the files. Use Disk Clean Up to perform any of the following tasks to free up space on your hard disk:
- Remove temporary Internet files.
- Remove downloaded program files.
- Empty the Recycle Bin.
- Remove Windows temporary files.
- Remove optional Windows components that you are not using.
- Remove installed programs that you no longer use.
- Click Start, and then click Run. In the Open box, type cleanmgr, and then click OK.
- Click Start, point to All Programs, point to Accessories, point to System Tools, and then click Disk Clean Up.
- In Windows Explorer or My Computer, right-click the disk in which you want to free up space, click Properties, click the General tab, and then click Disk Clean Up.
To remove files stored on your hard disk that you no longer use, follow these steps:
- Click Start, and then click My Computer.
- Right-click the disk in which you want to free up space, and then click Properties.
- Click the General tab, and then click Disk Clean Up.
- Click the Disk Clean Up tab (if it is not already selected), click to select the check boxes next to the files that you want to remove, and then click OK.
- Click Yes to proceed with this action, and then click OK.
There are a number of different types of file categories that Disk Cleanup targets when it performs the initial disk analysis. Depending on the individual system, you may or may not have all the categories listed below. An excellent example of this would be Backup Files from a Previous Operating System. If a clean install of XP was performed then this category will not exist. It pays to click on each of the categories and note that the [View Files] button can change depending on the category selected.
- Downloaded Program Files
- Temporary Internet Files
- Recycle Bin
- Temporary Remote Desktop Files
- Setup Log Files
- Backup Files For Previous Operating System
- Offline Files
- Compress Old Files
There may be other categories that appear in your Disk Cleanup window, but in all cases, highlighting the item will display an explanation of the category in the Description area.
Disk Clean Up - Remove Windows Components
To remove Windows components that you are not using, follow these steps:
- Click Start, and then click My Computer.
- Right-click the disk in which you want to free up space, and then click Properties.
- Click the General tab, and then click Disk Clean Up.
- Click the More Options tab, and then under Windows components, click Clean Up. The Windows Components Wizard starts.
- In the Components list, click to clear the check box next to the component(s) that you want to remove.
- A shaded check box next to a component indicates that only some of its subcomponents are installed. If you want to remove a subcomponent, click Details, click to clear the check box next to the subcomponent(s) that you want to remove, and then click OK.
- Click Next.
- In the Completing the Windows Components Wizard page, click Finish.
- Click OK, click Yes to proceed with this action, and then click OK.
To remove programs that you no longer use, follow these steps:
- Click Start, and then click My Computer.
- Right-click the disk in which you want to free up space, and then click Properties.
- Click the General tab, and then click Disk Clean Up.
- Click the More Options tab, and then under Installed programs, click Clean Up. The Add or Remove Programs dialog box is displayed.
- In the Currently installed programs list, click the program that you want to remove, and then click Remove (or Change/Remove).
- If you receive a prompt to confirm the removal of the program, click Yes.
- Repeat step 5 and 6 to remove other programs that you no longer use, and then click Close.
- Click OK, click Yes to proceed with this action, and then click OK.
To remove all restore points except the most recent restore point, follow these steps:
- Click Start, and then click My Computer.
- Right-click the disk in which you want to free up space, and then click Properties.
- Click the General tab, and then click Disk Clean Up.
- Click the More Options tab, and then under System Restore, click Clean Up.
- Click Yes to remove all but the most recent restore point.
- Click OK, click Yes to proceed with this action, and then click OK.
- Open Internet Explorer and click on the "Tools" menu.
- In the "Tools" menu, click on "Internet Options".
- The Internet Options pop-up window appears.
- Under the General Tab select the "Delete Cookies" button.
- Delete cookies by clicking "OK".
- Select the "Delete Files" button to clear the Internet cache. Make sure to check the box to "Delete all offline content".
- Delete temporary Internet file history data by selecting "Clear History".
- Open Firefox and click on the "Tools" menu.
- In the "Tools" menu, click on "Options".
- The Options pop-up window will open.
- From along the left side of the window select the "Privacy" icon. This displays the Privacy Settings in the right side of the window.
- The option to erase the temporary Internet file "Cookies" is near the bottom of the list.
- Click "Clear" to delete cookies.
- Delete all temporary Internet files by selecting the "Clear All" button.
- Delete specific temporary Internet files such as History or Cache files by selecting their individual "Clear" buttons.
- Open Netscape and click on the "Tools" menu.
- From the Tools menu select "Options".
- The Options pop-up window will open.
- From along the left side of the window select the "Privacy" icon. This displays the Privacy Settings in the right side of the window.
- The option to delete cookies labeled "Cookies" is near the bottom of the list.
- Click "Clear" to delete cookies.
- Delete all temporary Internet files by selecting the "Clear All" button.
- Delete specific temporary Internet files such as "Page History" or "Cache" by selecting their individual "Clear" buttons.
Disk Cleanup utility allows you to delete temporary internet files, recycle bin contents, temporary files, web client files, as well as compress files that have not been accessed for a while to free up space on your hard disk. You can also automate Disk Cleanup utility to run at periodic intervals and store the settings in the Registry for subsequent runs.
Disk Cleanup utility uses sagset/sagerun command line options in combination with the Task Scheduler to automate disk clean.
/sageset:n - Displays Disk Cleanup Settings and stores the selected values in the Registry. ’n’ can be any integer from 0 to 65535. You can select different Disk Cleanup Settings and assign a value for each of them. For example, you can assign a value of ’1’ to clear Temporary Files and schedule it to run on a daily basis and assign a value of ’2’ to delete Recycle bin and schedule it to run on a weekly basis and so on.
/sagerun:n - This runs the tasks that are defined by sageset:n
- Select Start > Run and enter cleanmgr /sageset:100 in the dialog box ( You can enter any value from 0 to 65535 as the value).
- Click ’OK’. Disk Cleanup Settings window appears.
- Select the files to be deleted by cleanmgr and click OK.
- Open Service panel and ensure ’Task Scheduler’ service is running. If not, start the ’Task Scheduler’ and proceed with the below mentioned steps.
- Select Start > Programs > Accessories > System Tools > Scheduled Tasks.
- Open Add Scheduled Task. ’Scheduled Task Wizard’ appears.
- Click the <Next> button.
- Click the program you want to run. Click the ’Browse’ button to select more programs. Select cleanmgr (for this example it is located at c:’windows’system32 directory).
- Check an appropriate ’Perform this task’ option. Options are:
* Weekly
* Monthly
* One time only
* When my computer starts
* When I log on. Click the ’Next’ button.
- Select the Start Time and Start Date for this task. Click ’Next’.
- Enter the username and password of the user. The task will fail if no user credentials are supplied. Click ’Next’.
- Select ’Open advanced properties for this task when I click Finish’ checkbox to set runtime properties. This is required step for Disk Clean automation.
- Append the following in the ’Run’ field /sagerun:100 (100 is the value of sageset parameter in this example. Substitute this value if you had entered a different sageset value).
- Click the ’Apply’ button. Enter Account Information details and click ’OK’.
- Disk Clean utility will run at the designated schedule based on the parameters defined.
http://www.whitecanyon.com/disk-clean-up.php
http://support.microsoft.com/kb/310312
http://www.theeldergeek.com/disk_cleanup_utility.htm
http://www.referpages.com/reference/computing/35-windows/60-diskclean.html