

© J.C. Kessels 2009
|
 |
 |
How can I run MyDefrag automatically every day?
It's a great idea to run MyDefrag automatically every day by adding it to the
Windows scheduler. The MyDefrag installer has an option to create a schedule for the
"Optimize Daily" script, or you can create a schedule yourself, like this:
2000, XP
- Start -> Settings -> Control Panel -> Scheduled Tasks
- Double-click the "Add Scheduled Task" icon.
- The wizard starts, click "Next".
- Use the "browse" button to select the "*.MyD" script that you want to run, for
example "c:\Program Files\MyDefrag v4.3.0\Scripts\OptimizeDaily.MyD".
- Select "daily", next, select a time, next.
- Enter a userid/password with administrator privileges, click "Finish".
Vista
- Start -> Settings -> Control Panel -> Administrative Tools -> Task Scheduler
- In the program select "Create Basic Task".
- When asked to select a "Program/Script" select the "*.MyD" script that you want
to run, for example "c:\Program Files\MyDefrag v4.3.0\Scripts\OptimizeDaily.MyD".
Leave the arguments and "start in" fields empty.
Note: Windows will refuse to create a task for a userid if the password of that
userid is empty.
Note: The Optimize Daily script that comes with MyDefrag will automatically exit
when it is finished. The other scripts do not. To do this you have to change the script
and add the WhenFinished setting.
Tip: See the "Settings" of the scheduled task to run only when the computer
is idle.
Tip: To start the task minimized see the MyDefrag
WindowSize script setting.
Tip: In some circumstances it can be preferable to run MyDefrag with "system"
privileges (instead of administrator privileges). Create a task and enter
the string "NT AUTHORITY\SYSTEM" for the userid, and no password.
Tip: Administrators can create tasks from the commandline with the Windows
"schtasks" command.
See also: Frequently Asked Questions
|
 |