Open Application

Find and share HowTos to various installations / configurations!
Search

Post Reply
4 posts • Page 1 of 1
Indrani125
Posts: 41
Joined: Wed Aug 07, 2019 10:50 am

Open Application

Post by Indrani125 »

How can I open application (ex-worpad or any other)through WinCC OA? Can we use System() for it?

User avatar
adaneau
Posts: 309
Joined: Tue Feb 21, 2012 9:49 am

Re: Open Application

Post by adaneau »

Hey,

Yes system() will work fine, just find the good path to the .exe.

Best
Alexandre

Indrani125
Posts: 41
Joined: Wed Aug 07, 2019 10:50 am

Re: Open Application

Post by Indrani125 »

I tried to open notepad but did not work.only command prompt is getting opened.Can you help?
main()


{


system("start cmd /start Notepad.exe");

}

User avatar
leoknipp
Posts: 2846
Joined: Tue Aug 24, 2010 7:28 pm

Re: Open Application

Post by leoknipp »

You can try it without "start cmd /start" and start only "Notepad.exe".
Possibly you have to use the full path to start an application.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
4 posts • Page 1 of 1