onAppStartBegin - event of object PmRoot

The event fires immediately after starting the application.
pMe(Object) Reference to the PROMOTIC object where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.Reset - (Boolean) If it is true, then the previous run of the application has been exited illegal (e.g. PC reset, outage, etc.). Otherwise the value is false.
At that time still no PROMOTIC objects are created and that's why their properties and methods can't be used in the event algorithm. After execution of the event, starting the application continues by creating PROMOTIC objects (onStart events of the objects are fired) and finally the onAppStartEnd event fires.
The automatic start of the disk control if the previous start of the PROMOTIC application hasn't been terminated correctly
VBScriptSelect and copy to clipboard

If pEvent.Reset Then
  Pm.CreateProcessSync "SCANDSKW.EXE /a /n", ""
End If
PROMOTIC 8.3.29 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice