WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FileVerInfo returns blank string

Keywords:  "" NULL Blank string FileVerInfo  

Question:

When using the function FileVerInfo, sometimes it returns a blank string (""). I am trying the get "FileVersion" info... I am running an older version of WinBatch Any thoughts?

Answer:

  1. The problem is that FileVerInfo by default only checks for English and "neutral" keys by default. So the problem is that the proper language key is not being used.
    ;Language-key     Language       Character Set
    ;   ------------     --------       -------------
    ;      040904E4       U.S. English   Windows Multilingual
    ;      040904B0       U.S. English   Unicode
    ;      000004E4       Neutral        Windows Multilingual
    ;      04090000       U.S. English   Neutral
    ;      00000000       Neutral        Neutral
    
    ;Additional foreign language keys
    ;     040C04E4	     French	     Windows Multilingual
    ;     0C0C04E4	     French-Canadian Windows Multilingual
    

  2. DLL 2.8hbt First showing up in WB 99H:
    In FileVerInfo, if you specify blank strings for both "language-key" and "resource-string", it will now return a tab-delimited list of language keys for which version information is available in the specified file.

  3. You might try the following code to test for some more language keys...
    debug(1)
    FileN= "C:\WINDOWS\SYSTEM\ODBC16GT.DLL"
    FVersion  = FileVerInfo(FileN, "", "FileVersion")
    if FVersion==""
       FVersion  = FileVerInfo(FileN, "000004E4", "FileVersion")
       if FVersion==""
          FVersion  = FileVerInfo(FileN, "04090000", "FileVersion")
          if FVersion==""
    	 FVersion  = FileVerInfo(FileN, "00000000", "FileVersion")
             if FVersion==""
    	    FVersion  = FileVerInfo(FileN, "00000000", "FileVersion")
    	    if FVersion==""
    	       message("Sorry","Cannot access File Version info")
    	    endif
             endif      
          endif
       endif
    endif
    message("Fileversion is",FVersion)
     
    

  4. You can update to version 98B or newer. In version 98B or newer the function FileVerInfo has been updated to check many types of language keys.

  5. Here are some other possible combinations:

    Specify one each of the following "Language Codes" and "Character Set":

    Example:

    Language code for French Canadian               = 0C0C
    Character Set is probably Windows, Multilingual  =04E4
    
    Format:
    [Language code][Character Set]
    [0C0C]		[04E4]
    
    The language key for French-Canadian is  0C0C04E4
    

    Language codes

    	0401 Arabic 
    	0402 Bulgarian
    	0403 Catalan 
    	0404 Traditional Chinese
    	0405 Czech
    	0406 Danish 
    	0407 German
    	0408 Greek
    	0409 U.S. English 
    	040A Castilian Spanish
    	040B Finnish
    	040C French
    	040D Hebrew
    	040E Hungarian
    	040F Icelandic
    	0410 Italian
    	0411 Japanese
    	0412 Korean 
    	0413 Dutch
    	0414 Norwegian - Bokml 
    	0810 Swiss Italian
    	0813 Belgian Dutch (Cyrillic)
    	0814 Norwegian - Nynorsk                  
    	0415 Polish                      
    	0416 Brazilian Portuguese       
    	0417 Rhaeto-Romanic             
    	0418 Romanian                   
    	0419 Russian                    
    	041A Croato-Serbian (Latin)     
    	041B Slovak                     
    	041C Albanian                   
    	041D Swedish                    
    	041E Thai                       
    	041F Turkish                    
    	0420 Urdu                       
    	0421 Bahasa                     
    	0804 Simplified Chinese         
    	0807 Swiss German               
    	0809 U.K. English               
    	080A Mexican Spanish            
    	080C Belgian French             
    	0C0C Canadian French            
    	100C Swiss French               
    	0816 Portuguese                 
    	081A Serbo-Croatian (Cyrillic) 
    

    Character Set

    	0000  7-bit ASCII
    	03A4  Windows, Japan (Shift - JIS X-0208)
    	03B5  Windows, Korea (Shift - KSC 5601)
    	03B6  Windows, Taiwan (GB5)
    	04B0  Unicode
    	04E2  Windows, Latin-2 (Eastern European)
    	04E3  Windows, Cyrillic
    	04E4  Windows, Multilingual
    	04E5  Windows, Greek
    	04E6  Windows, Turkish
    	04E7  Windows, Hebrew
    	04E8  Windows, Arabic 
    

Question:

Where are the winbatch language codes? Specifically, I need the English British codes. Thanks.

Answer:

Eeep. Wot?

Is this in reference to FileVersionInfo? Or WIL Language strings (all English is considered either "US English" or "ValSpeak" (you don't want to know) or ???

Question:

Thank you for the quick response. Yes, this is in reference to the FileVersionInfo. When using the command, values are returned as "0". The language appears to be returning as English-British. Do we perhaps need to use the "ValSpeak?"

Cheers.

Answer:

Try language codes of:
	080904E4
	080904b0
	08090000
And see if your luck improves.
Article ID:   W13078
Filename:   FileVerinfo and Language Keys.txt
File Created: 1999:09:27:11:17:58
Last Updated: 1999:09:27:11:17:58