如何停止显示命令 [英] How do I stop commands from being displayed
本文介绍了如何停止显示命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将命令提示符重定向到我的VB 2010应用程序。我不希望用户看到我输入的内容,但我希望他输出。任何想法?
I have redirected command prompt to my VB 2010 application. I do not want the user to see what i have typed, but i want him to the output. Any ideas?
推荐答案
更改应用程序。
如果您使用的是Console.ReadLine或类似的你的应用程序然后它将字符回显到屏幕,就好像它们被输入一样,并且没有办法从外部覆盖它。
所以,如果它是你的应用程序,那么改变它直接说话,而不是使用键盘输入。
Change the application.
If you are using Console.ReadLine or similar in your App then it echoes the characters to the "screen" as if they were typed, and there isn't a way to override that from the outside.
So, if it's your app, change it so talk directly, instead of using the keyboard input.
这篇关于如何停止显示命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文