Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

VBScript to check file language?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • OS:XP Pro x86
  • Country: Country Flag
Is there any simple way to check file language through a VBScript?

I mean something like when you use filever.exe and it displays ENU for English, PLK for Polish, etc.
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages


How to remove advertisement from MSFN

#2
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,418 posts
  • OS:none specified
  • Country: Country Flag
This script will list the langauge of the OS like this English - United States
I stopped it at 1040, here is a link to the rest of the values, look for the OSLangauge section

 Set Wmi = GetObject("winmgmts:\\.\root\CIMV2") 
 Dim L1, Obj
 L1 = "Langauge : " 
  For Each Obj In Wmi.ExecQuery( "SELECT * FROM Win32_OperatingSystem") 
   Select Case Obj.OSLanguage
    Case 1    L1 = L1 & "Arabic"
    Case 4    L1 = L1 & "Chinese (Simplified) - China"
    Case 9    L1 = L1 & "English"
    Case 1025 L1 = L1 & "Arabic - Saudi Arabia"
    Case 1026 L1 = L1 & "Bulgarian"
    Case 1027 L1 = L1 & "Catalan"
    Case 1028 L1 = L1 & "Chinese (Traditional) - Taiwan"
    Case 1029 L1 = L1 & "Czech"
    Case 1030 L1 = L1 & "Danish"
    Case 1031 L1 = L1 & "German - Germany"
    Case 1032 L1 = L1 & "Greek"
    Case 1033 L1 = L1 & "English - United States"
    Case 1034 L1 = L1 & "Spanish - Traditional Sort"
    Case 1035 L1 = L1 & "Finnish"
    Case 1036 L1 = L1 & "French - France"
    Case 1037 L1 = L1 & "Hebrew"
    Case 1038 L1 = L1 & "Hungarian"
    Case 1039 L1 = L1 & "Icelandic"
    Case 1040 L1 = L1 & "Italian - Italy"
   End Select     
  Next  
 Wscript.Echo L1



GunSmokingMan



#3
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,520 posts
  • OS:XP Pro x86
  • Country: Country Flag
Actually I'd like to be able to check language of individual files, not the entire system language.

If you use filever.exe on a file, ex.

filever kernel32.dll
then it will display (among all other information) its language code like "ENU" for English or "PLK" for Polish, etc.
Posted Image
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN