Skip to content

Sys_GetFileSystemType

Returns the file system type of the specified drive.

Sys_GetFileSystemType(sDriveLetter, bMustExist) As Boolean

Drive letter to inspect, for example C or C:

If True, the function returns False when the drive doesn’t exist, isn’t ready, or has an unknown file system

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.

If bStatus Then bStatus = Sys_GetFileSystemType("C", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Sys_GetFreeDiskSpace Sys_GetDriveType Constants Package Property Variables