Platforms to show: All Mac Windows Linux Cross-Platform
WindowsProcessMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Shell | MBS Win Plugin | 17.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
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
See also NSTask (Mac only), WindowsShellExecuteAsAdminMBS, WindowsShellExecuteMBS (Windows only), ConsoleExecuteMBS and ShellMBS (cross platform).
- 2 events
- event DataAvailable(AvailableBytesOutput as Integer, AvailableBytesError as Integer)
- event Terminated(ExitCode as Integer)
- 17 properties
- property ApplicationName as String
- property AvailableBytesError as Integer
- property AvailableBytesOutput as Integer
- property CommandLine as String
- property CurrentDirectory as String
- property Domain as String
- property Environment as Dictionary
- property ExitCode as Integer
- property LastError as Integer
- property LastErrorMessage as String
- property Password as String
- property ProcessHandle as Integer
- property ProcessID as Integer
- property Running as Boolean
- property ThreadHandle as Integer
- property ThreadID as Integer
- property UserName as String
- 10 methods
- method Close
- method PeekError(Length as Integer = 0) as String
- method PeekOutput(Length as Integer = 0) as String
- method ReadError(Length as Integer = 0) as String
- method ReadOutput(Length as Integer = 0) as String
- method Run as Boolean
- method SetKillProcessWhenParentDies as boolean
- method Terminate(ExitCode as Integer) as Boolean
- method Write(Data as MemoryBlock) as Integer
- method Write(Data as String) as Integer
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.2
- MBS Xojo Plugins, version 21.2pr6
- MBS Xojo Plugins, version 20.0pr8
- MBS Xojo Plugins, version 19.5pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 17.1
- MBS Xojo / Real Studio Plugins, version 17.1pr1
- Running command lines tools on Windows
Xojo Developer Magazine
Videos
Release notes
- Version 21.2
- Fixed ShellMBS and WindowsProcessMBS classes for Windows to allow PowerShell.exe to run.
- Version 20.0
- Fixed ReadError and ReadOutput for WindowsProcessMBS class to return empty string when called with value zero.
- Version 19.5
- Added ProcessHandle and ThreadHandle to ShellMBS and WindowsProcessMBS classes.
- Version 17.1
- Added WindowsProcessMBS class, a shell class replacement for Windows.
The items on this page are in the following plugins: MBS Win Plugin.
WindowsPrinterMBS - WindowsProcessMemoryInfoMBS