Skip to content

File_GetLanguage

Function will return the language of the file

File_GetLanguage(sFile, bReturnLocaleID, bMustExist) As Boolean

Filename

Return Locale ID. If true, the locale ID (see Language Constants) is returned, for example 1033. If false, the language name from the file’s version information is returned, for example English (United States).

File must exist

Result will be stored in gsValue. If the file doesn’t have a language stamp, gsValue is empty. Function will return false if file does not exist and bMustExist is true

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

Scripting Guidelines

File_GetFileDateCreated File_GetShortPath File_GetVersion Constants Package Property Variables