Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

GetDriveTypeMBS(path as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Files MBS Win Plugin 12.3 No Yes No Yes, Windows only No
Function: Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
if GetDriveTypeMBS("E:") = 4 then
msgbox "network drive"
end if
Path: The root directory for the drive.

Possible values:
0UnknownThe drive type cannot be determined.
1ErrorThe root path is invalid; for example, there is no volume mounted at the specified path.
2RemovableThe drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.
3FixedThe drive has fixed media; for example, a hard disk drive or flash drive.
4RemoteThe drive is a remote (network) drive.
5CD-ROMThe drive is a CD-ROM drive.
6RAM DiskThe drive is a RAM disk.

Feedback, Comments & Corrections

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

MBS FileMaker blog