How can i call and start an external program on a windows pc ?
Seems that the SHELL command is rigth, but this here dont work:
in Appstart
additional sub
Seems that the SHELL command is rigth, but this here dont work:
in Appstart
B4X:
Dim shl As Shell
shl.Initialize("shl", "java", _
Array As String("mysoftware.exe"))
shl.WorkingDirectory = "C:\Program Files (x86)\MySoftware\"
shl.Run(10000)
additional sub
B4X:
Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
If Success And ExitCode = 0 Then
Log("Success")
Log(StdOut)
Else
Log("Error: " & StdErr)
End If
ExitApplication
End Sub