Copyright © IT eGuru. Site Design by Apex Computer                                                           Home | About US | Contact | Terms & Condition | Disclaimer                                       

Google

IT Tips & tricks

Explore the knowledge

T

eGuru

I

Guides everything you need.

http://wwww.itkhoj.com  |  http://wwww.itvishwa.com

       हिन्दी वेबसाइट                          मराठी वेब साईट

Internet

Mobile

Software

Inernet Tips and Tricks
Mobile Tips and Tricks
Computer Security Tips and Tricks

Software Tips And Tricks

Take Advantage Of Task Scheduler And Put Repetitive Tasks On Auto Pilot Mode

January 20, 2016


Every day when we turn on our PCs, we find ourselves firing up the same taWindows Task Schedulersk to carry out again and again. Some tasks are really boring, but still we have to do them repeatedly. If we got a tool that will do all these jobs for your, then surely we will happy.  After all, why waste time to perform a set of repetitive tasks when you might be able to do them automatically?

Scheduling a task in Windows is very easy. Microsoft has included a very handy tool in Windows, known as Task Scheduler that allows you to add and automate tasks. In this article, I will show you how you can schedule and automate tasks with task scheduler.


Launch Task Scheduler:

To start the Task Scheduler-

Or

Task Sheduler1

As you can see, the window is divided vertically into three panes—a console tree on the left, an Actions pane on the right, and various informative areas in the center pane.

You can create a new task in the Scheduled Tasks snap-in either by using the Create Basic Task Wizard or by filling out the Create Task dialog box. Create Basic Task is ideal for time-triggered tasks involving a single action. It's also fine for setting up a task to run when you log on or when Windows starts. For a more complex task, go through the Create Task dialog box.








Create a task:

You can automate many tasks with the help of Task Scheduler. Here are some of them-


1) Schedule to Launch a programs when you log on:

Every time you log on to your computer, you have to open the same programs like Windows software, browser, email client etc. Then you can use the Task Scheduler wizard to create a task that opens the program for you automatically according to the schedule you choose.

I know many people start Outlook as the first application directly after they start their computer and close it as the last one when they shutdown. For example, you have to check mails every day, then start Outlook automatically with the help of Task Scheduler.

  1. Start a Task Scheduler.
  2. Click "Create Basic TaskTask Sheduler- Create Bask Task Wizard" under "Actions" in the far-right pane.
  3. Type a name for your task next to "Name" and a description for your task next to "Description" on the wizard's first screen. Click "Next" to proceed.










  1. Task Sheduler- Create Bask Task Wizard2In the Next screen, select the Trigger
  2. Select the time you want Outlook to start under "When Do You Want the Task to Start?" Select "Daily," "Weekly," "Monthly" etc. Here select “When the computer starts” or “When I log on” Then click Next.











  1. In the Next Screen select thTask Sheduler- Create Bask Task Wizard3e schedule i.e. date and time to start the task.












  1. In the Next screen, select the action “Start a program”Task Sheduler- Create Bask Task Wizard4








  1. Click tTask Sheduler- Create Bask Task Wizard5he "Browse" button next to "Program/Script." Locate Microsoft Outlook in the dialog box, then press "Enter.
  2. For Microsoft Office 2007 users, the default path will be "C:\Program Files\Microsoft Office\Office12\Outlook.exe"
  3. Click "Next" and "Finish" to save your scheduled task for Outlook. The program will start at the time of the scheduled task.









2) Schedule and Automate running of Disk Cleanup Utility:

Disk Cleanup is a convenient way to delete files you no longer need and free up hard disk space on your computer. Scheduling Disk Cleanup to run automatically every once in a week, can save you the trouble of having to remember to run it.


  1. Start the Task Scheduler.
  2. Click "Create Basic Task" under "Actions" in the farTask Sheduler- Disk Cleanup Ulitilty-1-right pane.
  3. The Create Basic Task Wizard will open, type here a name for the task and a description then click Next.






  1. Now select how often you want Disk Cleanup to run…Weekly, Daily, Monthly, One Time…etc. Here select Weekly.Task Sheduler- Disk Cleanup Ulitilty-4
  2. Specify the schedule you want to use, and then click Next.
  3. Click Start a program, and then click Next.
  4. Click Browse, type cleanmgr.exe in the File name box, click Open, and then click Next.
  5. Click Finish.


When you schedule Disk Cleanup, it will open and then wait for you to make choices before deleting files from your computer.



3) Schedule computer to shut down at a certain time:

Sometime maybe your computer is processing a task or maybe it is downloading files from the Internet, and you do not want to wait till then or if you normally shut down your pc at specific interval of time, then you can also use the Task scheduler to shut down, restart or perform any action at one time or periodically.


  1. Start the Task Scheduler.
  2. From the Action menu in Task Scheduler, click "Create Basic Task..."
  3.  In the "Create Basic Task Wizard" windows that pops up, Type in a title and a description. Something basic like "PC Shutdown."
  4. Click "Next."
  5. On the "Task Trigger" screen, choose the frequency with which you want the Shutdown PC to run. For nightly shutdown, click on "daily" and click the Next" button.
  6. On the "Daily" screen, enter the date and time you want your PC to shutdown. Click "Next."
  7. On the "Action" screen, choose "Start a program" and click "Next."
  8. On the "Start a Program" screen, type C:\Windows\System32\shutdown.exe in the "Program/script" text field.
  9. In the Add arguments text field type /s.
  10. Click "Next."
  11. Confirm your settings on the Summary screen and click "Finish."

Now your Windows 7 computer will automatically shutdown at the same time every day/night.




4) Automatically delete old files from a specified folder:

If you are a heavy Internet user and you download lots of from Internet, then you have to clear it frequently. Also if you shares your resources on your network and that can’t be useful after sharing, then these sharing also have to delete. But really it is very boring to delete files from the download or sharing folder. So again Task Scheduler will help you to automatically delete everything within the folder at a specific interval.

For this you first create a BAT file to delete all files in a specific folder/directory that are older than a 30 days.

  1. Open the Notepad.
  2. Task Scheduler - Automatically delete old filesCopy the following code in the Notepad






  1. forfiles /p “C:\Users\USERNAME\Downloads” /s /m *.* /c “cmd /c Del @path” /d -30

Here change the USERNAME by your PC’s user name. And here 30 means this will delete files older than 30 days and your can change as you want.

  1. Since this is a batch file, you could also add multiples versions of this command in the same file. For example to add share folder

forfiles /p “C:\Users\USERNAME\Share Documents” /s /m *.* /c “cmd /c Del @path” /d -30

  1. Save the file with the name delete.bat


Now schedule this batch file to run automatically every once in a week.

  1. Start the Task Scheduler.
  2. From the Action menu in Task Scheduler, click "Create Basic Task..."
  3.  In the "Create Basic Task Wizard" windows that pops up, Type in a title and a description. Something basic like "Delete Old Files"
  4. Click "Next."
  5. On the "Task Trigger" screen, choose the frequency with which you want the Shutdown PC to run. Here select Weekly and click the Next" button.
  6. On the "Weekly" screen, enter the date and time you want your PC to clear the folder. Click "Next."
  7. On the "Action" screen, choose "Start a program" and click "Next."
  8. On the "Start a Program" screen, click Brower button and select the batch file you created.
  9. Click "Next."
  10.  Confirm your settings on the Summary screen and click "Finish."



Do you think it is a great idea to automate repetitive task using Task Scheduler? Do you currently using Task Scheduler? Share in comments