Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") colOperatingSystems = objWMI.ExecQuery ("Select * from Win32_OperatingSystem") ForEach objOS In colOperatingSystems OSLang = objOS.OSLanguage Next Message("Decimal OS language number: " , OSLang) colOperatingSystems = 0 objWMI = 0 ExitThe script above will return 1033 (hex 0409) for an English OS.
You can map the hex value to the country using the list under this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Rfc1766
Article ID: W17002
File Created: 2007:07:03:14:27:32
Last Updated: 2007:07:03:14:27:32