07-08-2012 06:12 AM
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.
07-08-2012 01:36 PM
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
07-08-2012 02:18 PM
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.
07-09-2012 07:37 AM
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;
}