Please use [code]code here...[/code] tags when posting code.
B4X:
Sub Test
Dim shl As Shell
shl.Initialize("shl", "cmd.exe", Array("/c", "Help"))
shl.WorkingDirectory = "C:\Windows\System32\"
shl.Run(-1)
Wait For shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log(StdOut)
Log(Success)
End Sub
Please use [code]code here...[/code] tags when posting code.
B4X:
Sub Test
Dim shl As Shell
shl.Initialize("shl", "cmd.exe", Array("/c", "Help"))
shl.WorkingDirectory = "C:\Windows\System32\"
shl.Run(-1)
Wait For shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log(StdOut)
Log(Success)
End Sub