在不创建应用程序的情况下确定PC的本地文化 [英] Determine local culture of a PC without creating an application

查看:64
本文介绍了在不创建应用程序的情况下确定PC的本地文化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以在不运行应用程序的情况下确定PC的本地文化(例如en-US)?我尝试在控制面板"中查找|区域设置(运行WinXP),但是我不知道那里的选择如何映射到PC的文化.

Is there any way to determine the local culture of a PC (such as en-US) without running an application? I tried looking in Control Panel | Regional Settings (running WinXP), but I don't know how the choices there map to the PC's culture.

我正在寻找不需要创建.exe的解决方案,例如从命令提示符处(而不是PowerShell)运行命令,或者从VbScript或JS文件运行(只要我们真正了解了这种情况)而不是IE设置.)

I'm looking for a solution that doesn't require creating an .exe, such as running a command from the command prompt (not PowerShell), or a VbScript or JS file (as long as we are getting the real culture and not IE settings.)

谢谢

推荐答案

要从资源管理器界面查看信息,请遵循其他答案中的说明.

To view the information from the explorer interface follow the instructions in the other answers.

有关内部细节,请继续阅读:

For the internal details, read on:

每个用户的区域设置都保存在HKCU\Control Panel\International\下,值在LocaleName

The locale is save per user under HKCU\Control Panel\International\ under the value LocaleName

要快速查看您的语言环境,请从命令行运行它:

To quickly view your locale run this from the command line:

REG QUERY "HKCU\Control Panel\International" /v "LocaleName"

显然,您可以按自己喜欢的任何方式(cmd,powershell,vbs,c#等...)查询此信息

obviously you can query this information any way you like (cmd, powershell, vbs, c# etc...)

这篇关于在不创建应用程序的情况下确定PC的本地文化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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