Registering for an OnTimer Event

Topic Last Modified: 2006-06-12

The following example uses the RegEvent script to register for an OnTimer event.

Timers have scope, in the same way as other events. With timers, however, no event occurs in that location to cause the specified event to occur (such as a save event or a delete event). Note that scope does define a specific location for the registration event item, which can affect the security context of the event sink, and guarantees that the event will be deleted if the folder containing the timer event registration is deleted.

For more information about registering and managing event registrations, see Event Registration.

Examples

Add an OnTimer event to occur every minute for one hour:

cscript RegEvent.vbs add ontimer sink1.sink1.1
   file://./backofficestorage/mydomain/public%20folders/events/EventRegTimerItem1
   "8/4/98 01:50:00 AM" 1 -e "8/4/98 02:50:00 AM"

Register for an event handled by a script:

cscript RegEvent.vbs add ontimer ExOleDB.ScriptEventSink.1
   file://./backofficestorage/mydomain/mbx/user1/inbox/TimerEventReg2
   "09/15/98 02:35:00 PM" 1  -e "09/15/98 03:35:00 PM"
   -url http://public.example.com/my_script_location/script2.vbs

See Also

Other Resources

Event Registration