Tuesday, June 25, 2013

Disk Cleanup with Task Scheduler

A Task Scheduler helps you to run a task which you plan to do manually.

Like Every Monday I need to run a job to cleanup junk files from my laptop.

So what I do?
1.go to Start button.
2.Locate Accessories.
3.Locate System tools.
4.Choose the tool Disk Cleanup.

After clicking few yes/next/finish it gives me a satisfaction that my lappy is free of Junk files.

I want to forget this task.So I gave the responsibility to my laptop to remember this.Now how I did? Googled..
1.go to Start button.
2.Locate Accessories.
3.Locate System tools and Task Scheduler.
4.Googled and found that the program/executable which runs to clean up my disk is known as "cleanmgr.exe" and is located in the path %windir%\system32\cleanmgr.exe
5.I opened Task Scheduler.
6.In right Pane there was Actions Tab, I chose "Create Basic task" and a window popped up.
7.I gave my Task a relevant name and some description and clicked next.
8.It took me to a page where it asked when I want to run my job.Its full of radio buttons.I chose Weekly and clicked Next.
9.Here I gave the timing and clicked Next.
10.It asked What action I need to perform.I chose "Start a program" and clicked next.
11.It asked me which script to Run - I gave %windir%\system32\cleanmgr.exe and clicked next and finished it.
Now every Monday DiskCleanup runs automatically.

I Just click and permit it to run.

You can try googling and experimenting with Task Scheduler..Even I will.
Thanks for reading.

No comments:

Post a Comment