如何向命令行提交命令并接收响应 [英] How to submit a command to command line and recieve the response
本文介绍了如何向命令行提交命令并接收响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何提交以下命令:
How can i submit the following command :
net use X: \\server\loc
通过Windows窗体(vb.net)访问cmd.exe吗?
to the cmd.exe via my windows forms (vb.net)? and how can i read the response?
推荐答案
查看 ^ ]-它包含了您所需要的全部内容.
Look at the System.Diagnostic.Process class[^] - it contains all you need.
这篇关于如何向命令行提交命令并接收响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文