# File_GetLanguage

> Function will return the language of the file.

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

### Description

Function will return the language of the file

### Syntax

File_GetLanguage(sFile, bReturnLocaleID, bMustExist) As Boolean

### Parameter

#### sFile (String)

Filename

#### bReturnLocaleID (String)

Return Locale ID. If true the [Language Constants](/capainstaller/vb-scripting-library/addendum/language-constants/) will be returned

#### bMustExist (String)

File must exist

#### Return value

Result will be stored in gsValue. If the specified file do not have a language stamp gbValue will return false. Function will return false if file does not exist and bMustExist is true

### Example

**VBScript**

```vb
If bStatus Then bStatus = File_GetLanguage(gsWindowsdir & "\Explorer.exe", False, True)
If bStatus And gbValue Then bStatus = Job_Writelog("Custom", "The language of Explorer.exe is : " & gsValue, bStatus, True)
```

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

### Related functions

[File_GetFileDateCreated](/capainstaller/vb-scripting-library/file-functions/file-getfiledatecreated/) File_GetSecurity [File_GetShortPath](/capainstaller/vb-scripting-library/file-functions/file-getshortpath/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
