Tuesday, February 3, 2009

Windows XP Scheduler

Tired of manually launching, and exiting applications your everyday? Or irritated for needing to manually power OFF and ON your system everytime?

Actually, you can skip all these hassles by using the Task Scheduler in Windows XP.

Example:
1. Here's a way to defrag your system everyweek, automatically. (See this link.)
2. And some cool way to Hibernate the system: (Thanks to this cool site)
1.

Ensure hibernation mode is enabled. Click Control Panel, Power Options, and under the Hibernate tab tick the Enable Hibernation check-box.
2.

Click Start, All Programmes, Accessories, System Tools, Scheduled Tasks, double-click Add Scheduled Task.
3.

click Next to start the New Task Wizard, select Command Prompt from the drop-down list, click Next.
4.

Check the Daily radio-button (assuming you want the task to run each day) and click Next.
5.

Choose the time you want the task to be executed, click Next.
6.

Now you see a box with your username. Type your password once and once again to confirm it, click Next.
7.

Check the box labelled "Open advanced properties for this task when I click Finish", click Finish.

8.

Now you see a window titled Command Prompt or Command Prompt Advanced Settings in XP-Pro. Delete all the text in the box labeled Run.
9.

In the box labeled Run type rundll32 powrprof.dll, SetSuspendState. Note the space between the first 2 words and the comma followed by space between the 2nd and 3rd words. Click OK.
10.

Enter your password once and once again to confirm, click OK.
11.

Now you are back at the Scheduled Tasks window. You will see your new scheduled hibernation task and it will be named Command Prompt. Let's give it a better name. Right-click on it, click Rename, type Scheduled Hibernation or something similar, hit Enter to save the new name.
12.

Right-click the renamed scheduled hibernation task again. Notice one of items on the menu is Delete. You can delete the scheduled hibernation at anytime by opening the by opening the list of Scheduled Tasks, right-clicking the task and clicking Delete. Clicking properties opens the window where you set the time for the scheduled event. Theree you can change the time at which the task runs. Now close the Scheduled Tasks window.
13.

You're done!

At the chosen time each day your PC will hibernate, saving the status of all running programs to the hard drive. When you start it up again it will resume from the precise point paused and went into hibernation.

If it does not hibernate at the time you specified then you either set the time incorrectly or you did not enter the same password twice. It will not warn you if you make a mistake entering the passwords. In either case you must open the Scheduled Tasks window as described in steps X to X above, right-clicking the scheduled task and clicking Properties. Change any item and then change it back. That seemingly ridiculous task forces it to ask for the password again.

You may also need to edit the value of the When I press the sleep button on my computer setting found in the Power Options section of the Control Panel, and also on the power functionality available to your computer (ACPI).

No comments: