LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a command to an already open command window?

Hi,

 

I experience the same error message when executing the (System Command (cmd.exe) test.vi)  but on a 32bit Win 7 Pro OS...

Err =  "The process tried to write to a nonexistent pipe".

Albeit the response to "dir\n" was displayed  in the data2 display.

I also tried to change the Write to Pipe string from "dir\n" to "ipconfig\n" - but here there was no response in the data2 display.

 

oglib_pipe-1.0-1 has been installed via VI Package Manager

 

I would greatly appreciate some assistance.

 

Cheers

KC

 

0 Kudos
Message 11 of 13
(2,390 Views)

Hi Kech,

 

The post you have replied to has been inactive for more than a year. Please start a new thread and reference this one as it will give it more visibility and a better chance of your question being answered.

 

Regards

Arham H
Applications Engineer
National Instruments
0 Kudos
Message 12 of 13
(2,361 Views)

I realize this is a very old thread, but for anyone who wants to do this in the future, there is a .NET API for it that JKI has conveniently already wrapped for use in LabVIEW: https://www.vipm.io/package/jki_lib_dotnet_system_exec/

0 Kudos
Message 13 of 13
(1,230 Views)