LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get wsh output into Labview

How do you get the output of windows scripting host shell into Labview? For example, if you have a command prompt window open and you use an ActiveX reference to the wshshell sendkeys method to execute a directory command; how would you get the result into Labview. I don't want to write it to a file, I just want to get the standard output into Labview. I know there are easy ways to do this example, but I have to work with another custom application and this example describes the elements.
0 Kudos
Message 1 of 2
(2,621 Views)

Hello,

I think you'll be able to do this with the "System Exec.vi" in LabVIEW.  You would use it to make the actual command-line calls, and if the "Wait Until Done" input is TRUE, then you should receive "standard output" from the so-named terminal VI.  This VI will be in your palette in a place which depends on the version of LabVIEW you have.  In 8.2, it should be under the Connectivity -> Libraries & Executables sub-palette.

Will that do the trick for you?

Best Regards,

JLS

Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(2,588 Views)