Determine local culture of a PC without creating a

2019-07-30 00:34发布

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.

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.)

Thanks

2条回答
相关推荐>>
2楼-- · 2019-07-30 00:47

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

For the internal details, read on:

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"

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

查看更多
Animai°情兽
3楼-- · 2019-07-30 00:54

Look at the System Information tool under Accessories->System it tells you locale in there.

查看更多
登录 后发表回答