添加/蝙蝠通过键盘删除语言 [英] Add/remove keyboard languages through .bat
问题描述
有一段时间了,我现在用的win7,定期打乱我的键盘语言了,我必须远程添加3键盘语言,应用,然后删除它们。所以,我想知道如果有一种方法可以自动执行它通过一个.bat文件(加3特定的键盘语言,然后立即将其删除)。但是,我几乎一无所知。蝙蝠命令,因此,没有人知道,如果这通过一个.bat文件,如果是是可能的,什么命令我应该使用?
Some time now that I am using win7, it regularly messes my keyboard languages up, and I have to remotely add 3 keyboard languages, apply, and then remove them. So, I was wondering if there is a way to do it through a .bat file automatically(add 3 specific keyboard languages and then immediately remove them). However, I know almost nothing about .bat commands, so does anyone know if this is possible through a .bat file and if yes, what commands shall I use?
感谢你在前进,
乔治。
Thank you in advance, George.
推荐答案
这是可能的。
<一个href=\"http://blogs.msdn.com/b/shawnste/archive/2007/04/12/configuring-international-settings-from-the-command-line.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/shawnste/archive/2007/04/12/configuring-international-settings-from-the-command-line.aspx
http://msdn.microsoft.com/en-us/goglobal/ bb964650#EYB
命令行例如:
control intl.cpl,, /f:"%CD%\AddKeyboardLanguage.xml"
AddKeyboardLanguage.xml例如:
AddKeyboardLanguage.xml example:
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/></gs:UserList>
<gs:InputPreferences>
<!--ch-Google--><gs:InputLanguageID Action="add" ID="0804:E0200804"/>
</gs:InputPreferences>
</gs:GlobalizationServices>
RemoveKeyboardLanguage.xml例如:
RemoveKeyboardLanguage.xml example:
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/></gs:UserList>
<gs:InputPreferences>
<!--ch-Google--><gs:InputLanguageID Action="remove" ID="0804:E0200804"/>
</gs:InputPreferences>
</gs:GlobalizationServices>
这篇关于添加/蝙蝠通过键盘删除语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!