Opening a plink window from VB.NET application without showing the black ugly plink window

前端 未结 1 1725
闹比i
闹比i 2021-01-14 09:32

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

相关标签:
1条回答
  • 2021-01-14 10:00

    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
    

    You can then read and write using p.StandardInput and [p.StandardOutput][3].

    You can find more options to set as well in the ProcessStartInfo class.

    0 讨论(0)
提交回复
热议问题