小智 12

是的。

使用命令行自动化配置区域和语言选项国际设置

国际设置的 Windows Vista 命令行配置

命令行示例:

control intl.cpl,, /f:"%CD%\AddKeyboardLanguage.xml"
Run Code Online (Sandbox Code Playgroud)

添加KeyboardLanguage.xml 示例:

<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>
Run Code Online (Sandbox Code Playgroud)

RemoveKeyboardLanguage.xml 示例:

<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>
Run Code Online (Sandbox Code Playgroud)

  • 我想知道 cmd 中是否有任何命令可以告诉您当前在 Windows7 中使用的是哪种键盘布局?我的意思是一个命令,它返回您正在使用的语言布局的字符串值——不改变布局只是查询。 (2认同)