How to get system locale in Windows 7 cmd?

56,047

Solution 1

There's not a specific command (or at least, not one that I'm aware of) to get this information, but you can find it between those provided by systeminfo.exe.

Solution 2

Get-UICulture or Get-Host in PowerShell

(capitalization optional)

Share:
56,047

Related videos on Youtube

Richard Knop
Author by

Richard Knop

I'm a software engineer mostly working on backend from 2011. I have used various languages but has been mostly been writing Go code since 2014. In addition, I have been involved in lot of infra work and have experience with various public cloud platforms, Kubernetes, Terraform etc. For databases I have used lot of Postgres and MySQL but also Redis and other key value or document databases. Check some of my open source projects: https://github.com/RichardKnop/machinery https://github.com/RichardKnop/go-oauth2-server https://github.com/RichardKnop

Updated on September 17, 2022

Comments

  • Richard Knop
    Richard Knop over 1 year

    How can I get system locale in Windows 7?

    I mean something like: cs_CZ.UTF-8

    I tried writing "locale" in the command line but that doesn't work in Windows. Any suggestions?

  • djondal
    djondal almost 10 years
    When running systeminfo on a command line, a lot of information is output to the screen. The relevant information to look for is: System Locale: en-us;English (United States) Input Locale: en-us;English (United States)
  • Just a learner
    Just a learner about 9 years
    systeminfo /FO csv | ConvertFrom-Csv | select *locale
  • mivk
    mivk almost 9 years
    @Ogrish Man : This seems to be a Powershell command, but it gives me no output. Maybe because the headers are not in English. systeminfo.exe by itself works, as does gWaldo's answer in PS
  • kbyrd
    kbyrd over 6 years
    Please consider combining this answer with your previous one.
  • SteveR
    SteveR over 5 years
    @Seagram - thanks for this - I can confirm that it workds for English (United Kingom): System Locale: en-gb;English (United Kingdom)