Platforms to show: All Mac Windows Linux Cross-Platform

WindowsProcessMBS.ApplicationName as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The path to the application.
Notes:
Can be empty when application is part of command line.
(Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.AvailableBytesError as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Queries number of available bytes on stderr.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.AvailableBytesOutput as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Queries number of available bytes on stdout.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.CommandLine as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The command line to run.
Example:
// Run PowerShell to query execution policy

Dim s As New WindowsProcessMBS
s.CommandLine = "powershell.exe -Command ""Get-ExecutionPolicy -List"""

if s.run then
DelayMBS 0.5

while s.Running
// wait
app.YieldToNextThread
DelayMBS 0.1
wend

dim a as Integer = s.AvailableBytesOutput
Dim output As String = s.ReadOutput(a)

Break // see in debugger

else
break // failed
end if
Notes:
If applicationName is set, this should only provide parameters.
(Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.CurrentDirectory as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The current directory for the process.
Notes:
You can set this before calling Run to specify the start directory.
If this parameter is "", the new process will have the same current drive and directory as the calling process.
(Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.Domain as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The domain name.
Notes:
You can set username and password to run app with different user. Domain is optional to specify network domain.
(Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.Environment as Dictionary
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The environment variables to use.
Example:
// run command
dim w as new WindowsProcessMBS

w.CommandLine = "cmd /c echo %TEST%"

// set environment
dim env as new Dictionary
env.Value("TEST") = "Hello World"
w.Environment = env

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: (Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.ExitCode as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Queries the exit code of the terminated process.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.LastError as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Last windows error code.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.LastErrorMessage as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The message text for the last error.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.Password as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The password.
Notes:
You can set username and password to run app with different user. Domain is optional to specify network domain.
(Read and Write property)

Feedback, Comments & Corrections

WindowsProcessMBS.ProcessHandle as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 19.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: For Windows the process handle.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.ProcessID as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The process ID of the process.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.Running as Boolean
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: Checks whether process is running.
Notes:
Returns true if running or false if not.

The process may not terminate if there is still output data in the pipes. So please read error/stdout regularly.
(Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.ThreadHandle as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 19.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: For Windows the thread handle for the child process.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.ThreadID as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The thread ID of the main thread for the process.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsProcessMBS.UserName as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
property Shell MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Function: The user name.
Notes:
You can set username and password to run app with different user. Domain is optional to specify network domain.
(Read and Write property)

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Plugins

Start Chat