File_GetLanguage
Description
Section titled “Description”Function will return the language of the file
Syntax
Section titled “Syntax”File_GetLanguage(sFile, bReturnLocaleID, bMustExist) As Boolean
Parameters
Section titled “Parameters”sFile (String)
Section titled “sFile (String)”Filename
bReturnLocaleID (Boolean)
Section titled “bReturnLocaleID (Boolean)”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).
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”File must exist
Return value
Section titled “Return value”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
Example
Section titled “Example”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)Related functions
Section titled “Related functions”File_GetFileDateCreated File_GetShortPath File_GetVersion Constants Package Property Variables