How to Run External Application From WinCC OA

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
chandra
Posts:32
Joined: Fri Oct 06, 2017 12:25 pm

How to Run External Application From WinCC OA

Post by chandra »

Hello Everyone


I have a one installed application in my C folder(C:\\W8R1.5\\W8R1.5.exe) I want to open this application from WinCC OA by clicking on a button?

flindecke
Posts:69
Joined: Wed Jun 24, 2015 1:54 pm

Re: How to Run External Application From WinCC OA

Post by flindecke »

You can use WinCC OA API system for this case.

Code: Select all

string output;
string errorOutput;
int errCode = system("C:\\W8R1.5\\W8R1.5.exe", output, errorOutput);
if (errCode == -1) {
  DebugTN("Failure");
} else {
  DebugTN("Succeeded", output, errorOutput);
}
Further details are explain in the help. Search for "system*".

With regards
Frank

chandra
Posts:32
Joined: Fri Oct 06, 2017 12:25 pm

Re: How to Run External Application From WinCC OA

Post by chandra »

Hi

It is working

Thank You Very Much for your fast reply.

3 posts • Page 1 of 1