更改BATCH中的区域和语言选项 [英] Change regional and language options in BATCH

查看:133
本文介绍了更改BATCH中的区域和语言选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用批处理代码更改Windows XP和7中的区域和语言选项?

How can I change the regional and language options in Windows XP and 7 using batch code?

我想通过.bat文件将标准和格式"更改为墨西哥西班牙语.

I want to change the "Standards and formats" to Mexican Spanish with a .bat file.

推荐答案

这些设置位于HKCU\Control Panel\International

您可以使用reg.exe手动进行更改.最简单的方法是手动将区域和语言更改为西班牙语(墨西哥),然后打开cmd窗口并键入reg query "HKCU\Control Panel\International",这将为您显示所需的值.然后,要修改它们,请对每个值使用REG ADD "HKCU\Control Panel\International" /t REG_SZ /v LocaleName /d es-Mx /f,以适当的名称替换/v之后的值,并以适当的值替换/d之后的值.

You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values as you want them. Then to modify them, use REG ADD "HKCU\Control Panel\International" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.

另一种选择是将HKCU\Control Panel\International配置单元导出到.reg文件,然后使用regedit /s ImportFile.reg

The other option is to just export the HKCU\Control Panel\International hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg

您可能需要在导入后刷新注册表以查看更改.这通常涉及重新启动,但是请尝试将以下内容添加为批处理文件中的最后一行. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

这篇关于更改BATCH中的区域和语言选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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