从VB.NET应用程序中打开plink窗口而不显示黑色丑陋的plink窗口

3

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

1个回答

3
当然可以。请参考dreamincode.net上的说明。简单来说,您需要隐藏窗口并重定向标准输入/输出。
Dim p as New Process
With p.StartInfo
    .WindowStyle=ProcessWindowStyle.Hidden
    .RedirectStandardOutput=true
    .RedirectStandardInput=true
End With

你可以使用 p.StandardInput 和 [p.StandardOutput][3] 进行读写操作。
你还可以在 ProcessStartInfo 类 中找到更多设置选项。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接