Since the answer to this would be of use to any MBS user on Windows, I want to ask @ChristianSchmitz for clarification of the difference between these two classes and how they should be used. As a starting point, I use this code in a Window PushButton's Action Event:
// Dim tShell As New ShellMBS Dim tShell As New WindowsProcessMBS // Simplest form of the WindowsProcessMBS way - tShell.CommandLine = "cmd /c mtx -f \\.\changer0 status" If tShell.Run Then Window1.TextArea1.AppendText tShell.ReadOutput(tShell.AvailableBytesOutput) Else Window1.TextArea1.AppendText tShell.ReadError(tShell.AvailableBytesError) End If Do Window1.TextArea1.AppendText tShell.ReadOutput(tShell.AvailableBytesOutput) Loop Until Not tShell.Running
However, when I run this, a back end process is kicked off that never returns, the False leg of the initial If block is fired, but I get no output in either Output or Error and results in the need to reboot the system to clear that process.
I'm obviously missing the point somewhere. So, what did I miss?
Windows 10 Pro, Xojo 18r1, MBS 19r2pr8