Sys_GetFileSystemType
Description
Section titled “Description”Returns the file system type of the specified drive.
Syntax
Section titled “Syntax”Sys_GetFileSystemType(sDriveLetter, bMustExist) As Boolean
Parameters
Section titled “Parameters”sDriveLetter (String)
Section titled “sDriveLetter (String)”Drive letter to inspect, for example C or C:
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”If True, the function returns False when the drive doesn’t exist, isn’t ready, or has an unknown file system
Return value
Section titled “Return value”Result will be stored in gsValue, as Windows reports it, for example ‘NTFS’, ‘FAT32’, ‘exFAT’ or ‘CDFS’. If the drive doesn’t exist or isn’t ready, gsValue is empty.
Example
Section titled “Example”If bStatus Then bStatus = Sys_GetFileSystemType("C", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”Sys_GetFreeDiskSpace Sys_GetDriveType Constants Package Property Variables