Sub AppStart (Args() As String)
Dim shl As Shell
shl.Initialize("shl", "cmd", Array("/c", "c:\temp\Test.bat"))
shl.Run(-1)
StartMessageLoop
End Sub
Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log($"Success: ${Success},
Out: ${StdOut}
Error: ${StdErr}"$)
End Sub
Tip:
Start your batch file with the following command if you want it to always run it the batch file location (you can also set shl.WorkingDirectory):