Search This Blog

Wednesday, December 7, 2011

TỰ ĐỘNG HÓA VIỆC DỌN DẸP Ổ CỨNG TRÊN WIN 7 / AUTO DISK CLEANUP IN WIN 7 

I/ To Create a Windows Disk Cleanup Sageset, 

1. Click Start
2. Click Run
3. In the Open: text box, type cleanmgr /sageset:1
4. Click OK.
5. In the Disk Cleanup Settings dialog, check the options that you would to delete.
6. Click OK. 

Since you can have many sagesets, you could create one set to run daily and another to run weekly based on your usage. You just assign a different number and settings such as /sageset:2 

One cautionary note is I wouldn't delete Office Setup Files unless you're short on disk space. I find it convenient to have these files remain on a computer in case I need to do a repair or reinstall. This is especially true if you're traveling with a notebook and aren't accustomed to packing the installation CDs.

II/ Schedule Disk Cleanup to run automatically:

    Open Task Scheduler: Click the Start button, click Control Panel, click Administrative Tools, and then double-click Task Scheduler. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Click the Action menu, and then click Create Basic Task. This opens the Create Basic Task Wizard.
Type a name for the task and an optional description, and then click Next.
To select a schedule based on the calendar, click Daily, Weekly, Monthly, or One time, and then click Next.
Specify the schedule you want to use, and then click Next.
Click Start a program, and then click Next.
Click Browse, and, in the File name box, type cleanmgr.exe, click Open, and then click Next.
Click Finish.
When the designated time occurs, your custom cleanmgr program should kick off. If it doesn't, open Scheduled Tasks and see if anything shows in the Status column.
Usually when I create a scheduled task, I test it by using a time 5 minutes out and watch the results. This way if anything is wrong such as password errors, I have the opportunity to correct sooner than later. Once the task runs to my liking, I edit the times by right-clicking and selecting properties from the Scheduled Tasks.

No comments:

Post a Comment