Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsProcessMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Windows MBS Win Plugin 17.1 No Yes No Yes, Windows only No
Function: The class to run processes on Windows.
Example:
// run command
dim w as new WindowsProcessMBS

w.CommandLine = "cmd /c dir"
w.CurrentDirectory = "C:"

if not w.run then
MsgBox w.LastErrorMessage
Return
end if

// wait
while w.Running
app.YieldToNextThread
wend

// show result
dim a as Integer = w.AvailableBytesOutput
dim r as string = w.ReadOutput(a)
MsgBox r
Notes:
Can be used like shell, but with more windows specific options.
For interactive shell, you need to run cmd.exe yourself.
This shell is asynchronously. For synchrones mode, please write yourself a loop waiting for process to finish.

Please read Microsoft documentation for more details:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS Win Plugin.


WindowsPrinterMBS   -   WindowsProcessMemoryInfoMBS




Links
MBS Xojo Chart Plugins