StandardInput.Write

  • Thread starter Thread starter Christopher. A. Kelly
  • Start date Start date
C

Christopher. A. Kelly

I'm trying to send a string to a 3rd party application without using the
sendmessage api
below is what I am trying but it kicks out saying that StandardInput is
redirected. I know that it is getting the proper process from GetProcessById
but I just can't write to the stream any help would be appreciated.



Dim kcProcess As Process
Dim kcProcessID As Integer =
CInt(Me.ListView1.SelectedItems(0).Text)
'MsgBox(kcProcessID.ToString)
kcProcess = Process.GetProcessById(kcProcessID)
kcProcess.StartInfo.RedirectStandardInput = True
kcProcess.StandardInput.Write(" ")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top