如何从cmd查找当前的Windows语言? [英] How can I find the current Windows language from cmd?

查看:586
本文介绍了如何从cmd查找当前的Windows语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为每种语言运行一个脚本。
我需要一种使用批处理文件来查找使用哪种OS语言的方法。
在Windows XP和Windows 7上都可以。

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.

推荐答案

不知道在Windows 7上是否仍然有效但在Windows XP中确实如此

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

这篇关于如何从cmd查找当前的Windows语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆