从 VB.NET 应用程序打开 plink 窗口而不显示黑色丑陋的 plink 窗口 [英] Opening a plink window from VB.NET application without showing the black ugly plink window

查看:100
本文介绍了从 VB.NET 应用程序打开 plink 窗口而不显示黑色丑陋的 plink 窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在后台从 vb.net 应用程序调用 plink(不显示黑色的 plink cmd 屏幕)可以吗?

I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible?

推荐答案

绝对可以.请参阅关于 dreamincode.net.

Absolutely. See the instructions on dreamincode.net.

基本上,您想隐藏窗口,并重定向标准输入/输出.

Basically, you want to hide the window, and redirect standard in/out.

Dim p as New Process
With p.StartInfo
    .WindowStyle=ProcessWindowStyle.Hidden
    .RedirectStandardOutput=true
    .RedirectStandardInput=true
End With

然后您可以使用 进行读写p.StandardInput 和 [p.StandardOutput][3].

您还可以在 ProcessStartInfo 中找到更多要设置的选项班级.

这篇关于从 VB.NET 应用程序打开 plink 窗口而不显示黑色丑陋的 plink 窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆