Registering for a System Event
Topic Last Modified: 2006-06-12
The following example uses the RegEvent script to register for an OnMdbStartup system event. The command specifies the script host sink class (ExOleDB.ScriptEventSink.1), which then runs the script specified with the -url option.
Example
cscript RegEvent.vbs add onmdbstartup ExOleDB.ScriptEventSink.1
http://mystore/public/myfolder/startupevent
-url http://mystore/myeventscripts/script.vbs