Geographic Location Country Code

Forums Desktop Info Geographic Location Country Code

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #3251 Reply
      AvatarJC

      Hello,
      Using below REG or other simple way, I would like to display the Country Location Short Name from Microsoft’s site:
      https://docs.microsoft.com/en-us/windows/win32/intl/table-of-geographical-locations

      Dont really need the entire list of codes/countries but just a few.

      EX: 244=United States

      This registry location displays the decimal version:

      REG=active:1,interval:5,color:%Silver%,text:Locale,value:HKEY_CURRENT_USER\Control Panel\International\Geo\Nation,display:%1

      0
    • #3252 Reply
      GlennGlenn
      Keymaster

      Use a lookup table thus:

      # geographical location lookup table
      set=key:location12,value:Australia
      set=key:location244,value:United States

      REG=active:1,interval:5,color:%Silver%,text:Locale,value:HKEY_CURRENT_USER\Control Panel\International\Geo\Nation,display:%location%1% (%1)

      You get to construct the lookup table for the locations you need.

      1+
    • #3254 Reply
      AvatarJC

      Perfect!
      Thank you sir

      1+
Viewing 2 reply threads
Reply To: Geographic Location Country Code
Your information:




Do NOT follow this link or you will be banned from the site!