LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

External exe launched in a rectangular region drawn

Hello,

 

Please find an attachment. Kindly have a look on .uir file in the example. If i want to launch any external exe say e.g cmd.exe in the rectangular region drawn, what will be way of doing this as i am unable to launch .exe in the rectangular region specified.

 

Thanks & Regards.

Moshi.

0 Kudos
Message 1 of 4
(3,016 Views)

Hi Moshi,

 

you seem to join the unfortunate tendency to post the very same question multiple times: If people can't assist you it won't help repeating and doubling your question - it would be better to continue your original thread, see here

0 Kudos
Message 2 of 4
(3,013 Views)

Hi

 

Yes I have posted the question 2nd time beacuase I have not got reply of my query in my original thread. I was just posting it as the main topic so that most of the people can see and assist.

 

Regards.

0 Kudos
Message 3 of 4
(3,010 Views)

Moshi,

 

You can use pipes to do this, though when I tried this I couldn't get a reliable solution. I abandoned pipes and simply coerced the output into a file that I then read in. This is a very crude solution and I suspect isn't very future proof but it works in W7! Code below might help:

 

  sprintf (Cmd, "\"%s\" > \"%s\"", BatchFilePath, OutputFile);

  Ret = system(Cmd);

  if ( Ret < 0)  

  {                      

    //file is not there   

    sprintf( Msg, "Can't run %s, error: %i", Cmd, Ret);

   return Msg;

  }

0 Kudos
Message 4 of 4
(3,001 Views)