Platforms to show: All Mac Windows Linux Cross-Platform
Shell
Shell classes to run command line tools.
- Globals
- ConsoleExecuteMBS(path as folderitem, arguments() as string, environment() as string) as Integer
- ConsoleExecuteMBS(path as string, arguments() as string, environment() as string) as Integer
- Classes
- class ShellMBS
- method Arguments as String()
- method CloseInput
- method CloseStreams
- method Constructor
- method Destructor
- method Execute(Executable as String)
- method ExitCode as Integer
- method Poll
- method ReadError as String
- method ReadOutput as String
- method SetArguments(arguments() as String)
- method Terminate(WinExitCode as Integer = 255) as boolean
- method Wait(TimeOut as double = 30.0)
- method WriteInput(data as string) as Integer
- property ApplicationName as String
- property AvailableBytesError as Integer
- property AvailableBytesOutput as Integer
- property CurrentDirectory as String
- property Domain as String
- property Environment as Dictionary
- property ErrorCode as Integer
- property Executable as String
- property IsRunning as Boolean
- property Password as String
- property PID as Integer
- property ProcessHandle as Integer
- property Tag as Variant
- property ThreadHandle as Integer
- property Username as String
- event Completed
- event DataAvailable(AvailableBytesError as Integer, AvailableBytesOutput as Integer)
- class WindowsProcessMBS
- 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
- 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
- event DataAvailable(AvailableBytesOutput as Integer, AvailableBytesError as Integer)
- event Terminated(ExitCode as Integer)
- class ShellMBS
Release notes
- Version 23.5
- Fixed Terminate in ShellMBS class for Windows to work better.
- Version 23.0
- Version 21.5
- Enabled ConsoleExecuteMBS method for desktop projects.
- Version 21.2
- Fixed ShellMBS and WindowsProcessMBS classes for Windows to allow PowerShell.exe to run.
- Version 20.1
- Fixed a bug in ShellMBS class when running applications on Windows with empty ApplicationName.
- 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 19.2
- Added ShellMBS class.
- Version 17.1
- Added WindowsProcessMBS class, a shell class replacement for Windows.
The items on this page are in the following plugins: MBS Util Plugin, MBS Win Plugin.