windows 使用命令行更改键盘输入
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4285074/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Change keyboard input using Command Line
提问by Rorchackh
I would like to know whether is it possible to write a batch file that changes the default input language under windows XP What if the language is not installed ? For example, for some reason, My PC always starts with English as a default input language, and every time I have to go to control panel and reset it. I need to write a batch file that, when run, automatically adds french and make it the default one.
我想知道在windows XP下能不能写一个修改默认输入语言的批处理文件没有安装语言怎么办?例如,出于某种原因,我的电脑总是以英语作为默认输入语言,每次我都必须转到控制面板并重置它。我需要编写一个批处理文件,该文件在运行时会自动添加法语并将其设为默认值。
Thank you,
谢谢,
采纳答案by Vicky
I don't think you can do this directly with a batch file, but you could write a simple app that did it and call that from your batch file. There's some useful info here:
我认为您不能直接使用批处理文件执行此操作,但是您可以编写一个简单的应用程序来执行此操作并从您的批处理文件中调用它。这里有一些有用的信息:
http://msdn.microsoft.com/en-us/library/cc144191(VS.85).aspx
http://msdn.microsoft.com/en-us/library/cc144191(VS.85).aspx