复制Cmd文本 [英] Copy the Cmd text
本文介绍了复制Cmd文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用vb.net复制命令提示符文本?
请分享您的想法!。
解决方案
尝试
流程p =新流程();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName =File.bat;
p.Start();
string output = p.StandardOutput.ReadToEnd();
可以帮到你。
私有 Sub _commandExecutor_OutputRead( ByVal 输出作为 字符串)句柄 _commandExecutor.OutputRead
txtResult.Text =输出
结束 Sub < /跨度>
How to copy the command prompt text using vb.net?
pls share your ideas!.
解决方案
Try
Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "File.bat"; p.Start(); string output = p.StandardOutput.ReadToEnd();
May be this help you.
Private Sub _commandExecutor_OutputRead(ByVal output As String) Handles _commandExecutor.OutputRead txtResult.Text = output End Sub
这篇关于复制Cmd文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文