FS_GetDriveTypeΒΆ

FS_GetDriveType.

nFree = FS_GetDriveType(ssFileSystem)

Return Value

nType is the drive type:

nType

Description

DRIVE_UNKNOWN 0

The drive type cannot be determined.

DRIVE_NO_ROOT_DIR 1

The root path is invalid; for example, there is no volume mounted at the specified path.

DRIVE_REMOVABLE 2

The drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.

DRIVE_FIXED 3

The drive has fixed media; for example, a hard disk drive or flash drive.

DRIVE_REMOTE 4

The drive is a remote (network) drive.

DRIVE_CDROM 5

The drive is a CD-ROM drive.

DRIVE_RAMDISK 6

The drive is a RAM disk.

Parameters

ssFileSystem

ssFileSystem is the drive name.

History

Version

Description

R2015.0

New.

Example

* FS_GetDriveType("z:\\")
  4

id-2028337