LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send output to stdin of an already opened CMD via .Net

So I'm using a cmd to set up a vi and make it run automatically, when getting feed back through system Exec I would like to get it in the already open CMD and not generate a new one. I was told to use .Net . So I create a protype program that would find the running cmd and reference it to then send as standart input the feedback on the program. Sadly I keep getting this error and don't know how to fix it.

You'll find it attached to this message.

0 Kudos
Message 1 of 2
(1,908 Views)

What is the error?  I just did a quick search for how to use the StandardInput and it looks like there is a property called RedirectStandardInput that has to be set true before it can be used.  The default is false. 

 

https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.standardinput?view=netframewo...

 

https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.redirectstandardinpu...

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 2
(1,876 Views)