How can I find the current Windows language from cmd?

前端 未结 8 1048
囚心锁ツ
囚心锁ツ 2021-02-04 12:02

I would like to run a script for each language. I need a way to find which os language is being used, using batch files. Both on windows XP, and on Windows 7.

8条回答
  •  悲&欢浪女
    2021-02-04 12:19

    Don't know if this still works on Windows 7 but it does in Windows XP

    reg query "hklm\system\controlset001\control\nls\language" /v Installlanguage
    

    Then you can parse the ouput. e.g.

    0409 --> English
    0407 --> German
    

提交回复
热议问题