Sub AppStart (Args() As String)
Log("Hello world!!!")
DoSomething
StartMessageLoop
End Sub
Sub DoSomething
Dim shl As Shell
shl.Initialize("shl","c:\windows\system32\cmd.exe",Array("/c", "start"))
shl.Run(-1)
Wait For shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success And ExitCode = 0 Then
Log("Success")
Else
Log("Error: " & StdErr)
End If
End Sub