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.


The biggest plugin in space...