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
Parameter
Section titled “Parameter”sFile (String)
Filename
bReturnLocaleID (String)
Return Locale ID. If true the Language Constants will be returned
bMustExist (String)
File must exist
Return value
Section titled “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
Section titled “Example”VBScript
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)Related functions
Section titled “Related functions”File_GetFileDateCreated File_GetSecurity File_GetShortPath