码迷,mamicode.com
首页 > 其他好文 > 详细

[BAT]批处理自动修改区域和语言选项

时间:2014-07-06 23:26:01      阅读:1227      评论:0      收藏:0      [点我收藏+]

标签:style   color   for   io   line   window   

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.

 

For example:

reg query "HKCU\Control Panel\International
REG ADD "HKCU\Control Panel\International" /t REG_SZ /v LocaleName /d en-GB /f
REG ADD "HKCU\Control Panel\International" /t REG_SZ /v sCountry /d "United Kingdom" /f

 

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

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

 

 

[BAT]批处理自动修改区域和语言选项,布布扣,bubuko.com

[BAT]批处理自动修改区域和语言选项

标签:style   color   for   io   line   window   

原文地址:http://www.cnblogs.com/MasterMonkInTemple/p/3822428.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!