WindowsDiscInfoMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsDiscInfoMBS class.

WindowsDiscInfoMBS.Device(file as folderitem) as WindowsDiscInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the device with the given path.
Example
// volume(0) is boot volume
dim disc as WindowsDiscInfoMBS = WindowsDiscInfoMBS.Device(volume(0))

Returns nil on any error (like missing permissions).
Seems like on Windows Vista/7 you need admin rights to query this.
The path of the folderitem must be something starting with a drive letter.

See also:

WindowsDiscInfoMBS.Device(path as string) as WindowsDiscInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the device with the given path.
Example
dim disc as WindowsDiscInfoMBS = WindowsDiscInfoMBS.Device("C")

Returns nil on any error (like missing permissions).
Seems like on Windows Vista/7 you need admin rights to query this.
Path must be something starting with a drive letter.

See also:

WindowsDiscInfoMBS.Devices() as WindowsDiscInfoMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the device list.
Example
// enumerate all drives
dim discs(-1) as WindowsDiscInfoMBS = WindowsDiscInfoMBS.Devices

Returns empty array on error.
May get more information on Windows Vista/7 if application runs as administrator.

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


💬 Ask a question or report a problem