Sys_GetDriveType
Description
Section titled “Description”Detects the type of the specified drive.
Syntax
Section titled “Syntax”Sys_GetDriveType(sDriveLetter, bMustExist) As Boolean
Parameters
Section titled “Parameters”sDriveLetter (String)
Section titled “sDriveLetter (String)”Drive letter, for example D or D:
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”If True, the function returns False when the drive doesn’t exist
Return value
Section titled “Return value”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.
Example
Section titled “Example”If bStatus Then bStatus = Sys_GetDriveType("D", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”Sys_GetFreeDiskSpace Sys_GetFileSystemType Constants Package Property Variables