Skip to content

Sys_GetDriveType

Detects the type of the specified drive.

Sys_GetDriveType(sDriveLetter, bMustExist) As Boolean

Drive letter, for example D or D:

If True, the function returns False when the drive doesn’t exist

Result will be stored in gsValue. Possible values: ‘Unknown’, ‘Removable’, ‘Fixed’, ‘Network’, ‘CD-ROM’, ‘RAM Disk’. If the drive doesn’t exist, gsValue is empty.

If bStatus Then bStatus = Sys_GetDriveType("D", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Sys_GetFreeDiskSpace Sys_GetFileSystemType Constants Package Property Variables