Sys_GetDriveType

Description

Detects type of specified drive

 

Syntax

Sys_GetDriveType(sDriveLetter, bMustExist) As Boolean

 

Parameters

sDriveLetter (String)

Drive letter

bMustExist (Boolean)

Drive must exist


Return value

Result will be stored in gsValue. Possible values: 'Unknown', 'Removable', 'Fixed', 'Network', 'CD-ROM', 'RAM Disk'

 

Example

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

Scripting Guidelines

 

Related functions

Sys_GetFreeDiskSpace Sys_GetFileSystemType