Page 67 - 500
P. 67
specify a repeat interval for a recurrent task. If you select Repeat
Task, you can use the Time or Duration option to tell the system
when to quit repeating. To repeat every two hours until 11 P.M.,
for example, you could select Repeat Task, set the Every fields to
2 and Hours, select Time, and specify 11 P.M. To run at 30-minute
intervals for four hours, you could set the Every fields to 30 and
Minutes, select Duration, and then specify 4 hours and 0 minutes.
On the Settings tab you can provide a termination order for a task
that has run too long, stipulate that a task not run if the computer is
in use at the scheduled time ( or stop running if someone begins
using the computer) , and tell the system not to run a task if the
computer is running on battery power. You can also select a check
box that will remove the task object from the Scheduled Tasks
folder if, on the current schedule, it’s never going to run again.
On the Security tab you can control who’s allowed to do what with
your scheduled tasks. Task objects use standard NTFS file-system
security descriptors: Full Control, Modify, Read and Execute,
Read, and Write. Note that the security descriptors that appear in
the task object’s properties dialog box apply only to the task
object. The programs and documents specified by the task object
have their own separate security descriptors. You can use
Windows Explorer to modify those.
Scheduling Tasks with the At Command
The Scheduled Tasks facility is a friendly and versatile extension
of the At command that was included with previous versions of the
Windows NT platform. You can continue to enter At commands at
the command prompt or in batch files; tasks that you set up this
way appear in the Scheduled Tasks folder, identified as Atn, where
n is a task ID supplied by the system. If you edit an At task in
Scheduled Tasks, however, the task is upgraded to a "normal"
scheduled task. At that point, you can no longer delete the task
from the command prompt, and you must supply user credentials
(account name and password) before the task can run.
The At command has two alternative syntaxes:
at [\\computemame] time [/interactive] [/every:<date[,...] |
/next:date[,...]] "command"
and