Speed up any part of Windows by automating repetitive tasks using both the Scheduled Tasks tool (XP only) and a free automation tool (all versions of Windows). Part one of two
id you know it's possible to automate tasks in Microsoft Office with the help of macros? If not, click here for a complete guide courtesy of Support PCs.
This functionality is built into Microsoft Office, but what about other parts of Windows? Thankfully it's possible to automate just about any aspect of your computing, and you won't need to pay a penny to do it.
If you want to run a specific program on a regular basis, you'll find Windows XP's own Scheduled Tasks utility fits the bill perfectly, but if you want to go further and extend the use of macro-like functions to any program or part of Windows XP, you'll need a free tool called AutoHotKey, which we cover in part two of this tutorial. It's not as intuitive as Office's macro tool, but we'll show you how to get the best results from it.
Schedule frequent tasks
Certain programs run, perform a task and then shut themselves down. One such example is your anti-virus program's scanning facility - it launches, scans your system for viruses, and then closes down when it's finished. Other programs - like Windows Disk Defragmenter utility - can be fed specific commands to perform tasks automatically (in this case, the program runs and automatically defragments your hard drive before closing).
In both cases, Windows' Scheduled Tasks utility can be set to launch them automatically at set intervals. Some tools - such as Norton Internet Security - already use Scheduled Tasks to perform specific actions like scanning for viruses or running a back-up job.
The simplest way to use Task Scheduler is in conjunction with your program - look for an option within it to set up automatically recurring tasks. If this doesn't exist, you can create your own through the Scheduled Tasks Utility, although this assumes the program you wish to run can do so without any interaction from you, such as Windows' own System Restore tool. The step-by-step guide below reveals how to set up a new scheduled task and configure it to your personal satisfaction.
Step-by-step:
Set up a Scheduled Task in Windows XP
1. CREATE NEW TASK
Click Start > All Programs > Accessories > System Tools > Scheduled Tasks. To create a new recurring task, click Add Scheduled Task to launch the wizard.
2. SELECT PROGRAM
Click Next and wait for Windows XP to scan for programs. If your program is listed, select it and click Next; otherwise click Browse to locate it manually.
3. SET SCHEDULE
Choose how often you want the task to run such as daily, weekly or when the computer starts, then click Next to fine-tune these settings further.
4. SUPPLY PASSWORD
Click Next, enter your user password if required and click Next again. Tick Open advanced properties... before clicking Finish to fine-tune further.
5. MORE OPTIONS
See the main copy for advice on configuring the Task tab for system utilities that need extra parameters, or switch to the Schedule tab to fine-tune its scheduling.
6. ADVANCED SETTINGS
Use the Settings tab to tweak advanced settings, such as stopping the task if it runs beyond a certain time or waking your PC from standby if necessary.
If you want to use the utility to run Windows maintenance tasks automatically, then Microsoft has published a number of Knowledge Base articles that explain how to schedule Windows maintenance tasks. To defragment your hard drive at regular intervals, click here; if you want to run Disk Cleanup automatically at set times, click here instead.
One last thing: if you want to wake up your PC for a specific task, you'll need to assign your user account a password, even if you're the only user of your PC. The step-by-step guide below reveals how to avoid problems should your task require a system restart to complete.
Q&A
I'd like to schedule my computer to run various maintenance tasks while I'm asleep, powering itself up to do so, then shutting itself down when it's finished. Is this possible?
It is if you're happy for your computer to stay powered on all night. You can put it into a low-power state like standby or Hibernate - when the task is scheduled to begin, the computer can be set to automatically wake itself when you tick the Wake the computer to run this task box from the Settings tab.
The trick of course, is telling your PC to go back into hibernation or standby after the task has completed. The easiest way to do this is to tweak its power settings so it goes back into the previous low-power mode after a period of inactivity - do so from the Power Options Control Panel. Select a reasonable time - no more than 30 minutes - to put the computer back into Hibernation or Standby on the Power Schemes tab.
Step-by-step:
Avoid problems with scheduled tasks that restart your PC
1. SET UP PASSWORD
If your account doesn't already have one, click Start > Control Panel and click User Accounts twice. Select your account by clicking it and choose Create a password. Enter a password, confirm it and - if necessary - type a hint that isn't too obvious.
2. AUTO LOGON
Click Start > Run, type control userpasswords2 and press [Enter] to reveal a hidden Control Panel. Untick Users must enter a username and password... and click OK. Enter your username, type your password twice and click OK.
3. TWEAK TASK SCHEDULER
Now open Task Scheduler (Start > All Programs > Accessories > System Tools > Scheduled Tasks). Create the task you want to run, making sure you enter your password in the Run as box by clicking Set Password. Click OK when done.
4. SIT BACK - JOB DONE
You can now relax - your PC will run all the tasks automatically, and that includes those that restart your computer. Windows will now automatically log back on whenever a scheduled task requires a restart and your system won't grind to a halt.