# Sys_GetFileSystemType

> Returns the file system type.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/system-functions/sys-getfilesystemtype/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Returns the file system type

### Syntax

Sys_GetFileSystemType(sDriveLetter, bMustExist) As Boolean

### Parameters

#### sDriveLetter (String)

Drive letter to inspect

#### bMustExist (Boolean)

Drive letter must exist

### Return value

Result will be stored in gsValue. Possible values: 'FAT', 'NTFS'

### Example

**VBScript**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Sys_GetFreeDiskSpace](/capainstaller/vb-scripting-library/system-functions/sys-getfreediskspace/) [Sys_GetDriveType](/capainstaller/vb-scripting-library/system-functions/sys-getdrivetype/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
