LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec output not redirected

i am using system exec to run and exe file from a command window i can run and pipe the output to a file but running from the system exec the file does not appear to even run

 

the command i use is              C:\tjtagv2.exe > c:\text.txt

 

i have tried the various switches for the cmd command and it just doesn't want to work using the system exec any idea how i can get this to work

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

You need to run the program within the context of a command window. Thus, you should be using something like

 

cmd /c C:\tjtagv2.exe > c:\text.txt\

 

as the input to System Exec.

0 Kudos
Message 2 of 2
(2,735 Views)