Stops a script from continuing.
Run "C:\BlueZone\Bzmd.Exe /s2 /fsystem2.zmd" Pause 14 ResultCode = EMConnect "A" If ( ResultCode <> 0 ) Then ' stop script from executing StopScript End If
BeginDialog Dialog1, 0, 0, 201, 72, "Logoff Before Disconnect"
ButtonGroup ButtonPressed
OkButton 36, 45, 50, 15
CancelButton 116, 45, 50, 15
Text 15, 10, 175, 25, "Please make sure you are logged out of the VM system
before disconnecting. Press Cancel to abort disconnect."
EndDialog
nRet = Dialog( Dialog1 )
If ( nRet = 0 ) Then
StopScript 1 'tells BlueZone to abort any disconnect or close
End If